aboutsummaryrefslogtreecommitdiffstats
path: root/fs/kernfs/kernfs-internal.h
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2014-01-10 13:57:20 +0000
committerGreg Kroah-Hartman <[email protected]>2014-01-10 21:44:25 +0000
commita69d001cfc712b96ec9d7ba44d6285702a38dabf (patch)
tree295a4f2c57a883d45596078a28278cb054bf9a02 /fs/kernfs/kernfs-internal.h
parentkernfs: replace kernfs_node->u.completion with kernfs_root->deactivate_waitq (diff)
downloadkernel-a69d001cfc712b96ec9d7ba44d6285702a38dabf.tar.gz
kernel-a69d001cfc712b96ec9d7ba44d6285702a38dabf.zip
kernfs: remove KERNFS_ACTIVE_REF and add kernfs_lockdep()
There currently are two mechanisms gating active ref lockdep annotations - KERNFS_LOCKDEP flag and KERNFS_ACTIVE_REF type mask. The former disables lockdep annotations in kernfs_get/put_active() while the latter disables all of kernfs_deactivate(). While KERNFS_ACTIVE_REF also behaves as an optimization to skip the deactivation step for non-file nodes, the benefit is marginal and it needlessly diverges code paths. Let's drop KERNFS_ACTIVE_REF and use KERNFS_LOCKDEP in kernfs_deactivate() too. While at it, add a test helper kernfs_lockdep() to test KERNFS_LOCKDEP flag so that it's more convenient and the related code can be compiled out when not enabled. Signed-off-by: Tejun Heo <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/kernfs/kernfs-internal.h')
0 files changed, 0 insertions, 0 deletions