aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorPaul E. McKenney <[email protected]>2010-07-20 20:24:34 +0000
committerLinus Torvalds <[email protected]>2010-07-20 23:25:41 +0000
commit844b9a8707f1fcf0482e0c52f44a555e799ccda6 (patch)
treec9c095c123c2988b014e39b461eb04411b3a197d /fs/jbd/commit.c
parentsdhci-s3c: add missing remove function (diff)
downloadkernel-844b9a8707f1fcf0482e0c52f44a555e799ccda6.tar.gz
kernel-844b9a8707f1fcf0482e0c52f44a555e799ccda6.zip
vfs: fix RCU-lockdep false positive due to /proc
If a single-threaded process does a file-descriptor operation, and some other process accesses that same file descriptor via /proc, the current rcu_dereference_check_fdtable() can give a false-positive RCU-lockdep splat due to the reference count being increased by the /proc access after the reference-count check in fget_light() but before the check in rcu_dereference_check_fdtable(). This commit prevents this false positive by checking for a single-threaded process. To avoid #include hell, this commit uses the wrapper for thread_group_empty(current) defined by rcu_my_thread_group_empty() provided in a separate commit. Located-by: Miles Lane <[email protected]> Located-by: Eric Dumazet <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions