Whamcloud - gitweb
LU-15619 osc: Remove oap lock 19/46719/7
authorPatrick Farrell <pfarrell@whamcloud.com>
Fri, 4 Mar 2022 22:08:44 +0000 (17:08 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 2 Nov 2022 07:10:04 +0000 (07:10 +0000)
commitb2274a716087fad24490f56026775886c26f74b8
tree4c2e3bd71d657469a70d80a3d4fc8b001d628af1
parent7e0a2b073701e23f6c941d249e034abe1043ccd6
LU-15619 osc: Remove oap lock

The OAP lock is taken around setting the oap flags, but not
any of the other fields in oap.  As far as I can tell, this
is just some cargo cult belief about locking - there's no
reason for it.

Remove it entirely.  (From the code, a queued spin lock
appears to be 12 bytes on x86_64.)

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: Ib61190d52c08d88c95a0c19b8ef7d114e26cfae2
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/46719
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
lustre/include/lustre_osc.h
lustre/osc/osc_cache.c
lustre/osc/osc_io.c
lustre/osc/osc_page.c