Revision a6a5349d17f2a5c37079826f1a1474c3d08c6b53 authored by Sage Weil on 13 April 2010, 21:07:07 UTC, committed by Sage Weil on 13 April 2010, 21:07:07 UTC
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>
1 parent e1e4dd0
History
File Mode Size
Documentation
bench
scripts
util
.gitignore -rw-r--r-- 219 bytes
CREDITS -rw-r--r-- 603 bytes
Makefile -rw-r--r-- 37.1 KB
builtin-annotate.c -rw-r--r-- 13.6 KB
builtin-bench.c -rw-r--r-- 4.8 KB
builtin-buildid-cache.c -rw-r--r-- 3.2 KB
builtin-buildid-list.c -rw-r--r-- 1.4 KB
builtin-diff.c -rw-r--r-- 6.5 KB
builtin-help.c -rw-r--r-- 11.2 KB
builtin-kmem.c -rw-r--r-- 17.0 KB
builtin-list.c -rw-r--r-- 437 bytes
builtin-lock.c -rw-r--r-- 19.0 KB
builtin-probe.c -rw-r--r-- 9.5 KB
builtin-record.c -rw-r--r-- 16.6 KB
builtin-report.c -rw-r--r-- 12.4 KB
builtin-sched.c -rw-r--r-- 43.5 KB
builtin-stat.c -rw-r--r-- 13.0 KB
builtin-timechart.c -rw-r--r-- 23.0 KB
builtin-top.c -rw-r--r-- 31.2 KB
builtin-trace.c -rw-r--r-- 13.1 KB
builtin.h -rw-r--r-- 1.7 KB
command-list.txt -rw-r--r-- 678 bytes
design.txt -rw-r--r-- 17.3 KB
perf-archive.sh -rw-r--r-- 815 bytes
perf.c -rw-r--r-- 11.3 KB
perf.h -rw-r--r-- 3.2 KB

back to top