aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorNiels Dossche <[email protected]>2022-03-03 00:38:39 +0000
committerDavid Sterba <[email protected]>2022-03-14 12:13:53 +0000
commitbf7bd725b022cca0195aa81a378a82b1e731a4a3 (patch)
treeafd8412a8ccc3f0181546f72112b71b804fcf1e6 /lib/mpi/mpi-bit.c
parentbtrfs: verify the tranisd of the to-be-written dirty extent buffer (diff)
downloadkernel-bf7bd725b022cca0195aa81a378a82b1e731a4a3.tar.gz
kernel-bf7bd725b022cca0195aa81a378a82b1e731a4a3.zip
btrfs: add lockdep_assert_held to need_preemptive_reclaim
In a previous patch ("btrfs: extend locking to all space_info members accesses") the locking for the space_info members was extended in btrfs_preempt_reclaim_metadata_space because not all the member accesses that needed locks were actually locked (bytes_pinned et al). It was then suggested to also add a call to lockdep_assert_held to need_preemptive_reclaim. This function also works with space_info members. As of now, it has only two call sites which both hold the lock. Suggested-by: Johannes Thumshirn <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Niels Dossche <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions