diff options
author | Sage Weil <sage@newdream.net> | 2010-04-13 14:07:07 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-04-13 14:07:07 -0700 |
commit | a6a5349d17f2a5c37079826f1a1474c3d08c6b53 (patch) | |
tree | 3b37dadbf297abdd65b3f63ac8e94a6137098198 /fs/ceph/crush | |
parent | e1e4dd0caa63e166afa46a1ccc947bebb4f66bcf (diff) | |
download | kernel_goldelico_gta04-a6a5349d17f2a5c37079826f1a1474c3d08c6b53.zip kernel_goldelico_gta04-a6a5349d17f2a5c37079826f1a1474c3d08c6b53.tar.gz kernel_goldelico_gta04-a6a5349d17f2a5c37079826f1a1474c3d08c6b53.tar.bz2 |
ceph: use separate class for ceph sockets' sk_lock
Use a separate class for ceph sockets to prevent lockdep confusion.
Because ceph sockets only get passed kernel pointers, there is no
dependency from sk_lock -> mmap_sem. If we share the same class as other
sockets, lockdep detects a circular dependency from
mmap_sem (page fault) -> fs mutex -> sk_lock -> mmap_sem
because dependencies are noted from both ceph and user contexts. Using
a separate class prevents the sk_lock(ceph) -> mmap_sem dependency and
makes lockdep happy.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/crush')
0 files changed, 0 insertions, 0 deletions