Whamcloud - gitweb
LU-9679 llite: annotate non-owner locking 34/39234/3
authorMr NeilBrown <neilb@suse.de>
Thu, 2 Jul 2020 01:02:02 +0000 (11:02 +1000)
committerOleg Drokin <green@whamcloud.com>
Fri, 10 Jul 2020 16:52:05 +0000 (16:52 +0000)
commitf34392412fe2204d6202cb11b44a646e368a1ce7
treef614427470e71c6d17115918d2a06741284e2e9e
parent5630166330f33d8e5fc90eeee8e8d9a895dc2675
LU-9679 llite: annotate non-owner locking

The lli_lsm_sem locks taken by ll_prep_md_op_data() are sometimes
released by a different thread.  This confuses lockdep unless we
explain the situation.

So use down_read_non_owner() and up_read_non_owner().

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ie6543706c658fc427461ef03448f3fcf90abaab7
Reviewed-on: https://review.whamcloud.com/39234
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/llite_lib.c