Whamcloud - gitweb
LU-17022 obdclass: convert obd_conn_inprogress to atomic_t 06/51906/3
authorMr NeilBrown <neilb@suse.de>
Sun, 25 Feb 2024 23:41:46 +0000 (18:41 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 4 Mar 2024 20:02:08 +0000 (20:02 +0000)
commit83fd1929082ad643bff585a1f6dd52488b102b53
treef63279d4a009ab3da93d5e69776f21930f30d527
parentc7e9bdf8d4bb5e1127eb87472fbf0414823d5461
LU-17022 obdclass: convert obd_conn_inprogress to atomic_t

Using atomic_t for obd_conn_inprogress means we don't need to take a
spinlock.
Also send wakeup when value reaches zero, and wait for the wakeup
instead of using a yield() loop.

Change-Id: I9af29e068203cde951e592c408906d121702fa18
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51906
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd.h
lustre/ldlm/ldlm_lib.c
lustre/obdclass/genops.c
lustre/obdclass/obd_config.c