Whamcloud - gitweb
LU-17269 obdclass: fix locking for class_register/deregister 47/54747/7
authorTimothy Day <timday@amazon.com>
Thu, 11 Apr 2024 17:56:54 +0000 (17:56 +0000)
committerOleg Drokin <green@whamcloud.com>
Tue, 23 Apr 2024 19:46:33 +0000 (19:46 +0000)
commite8d318054063c860f1e039890792ab25950eb8de
tree4558ce7531e0984d1bc993a9b783c97c5babd3b8
parentbcb954c1403fb1c0fed2ae1d4ed817e59a93a0b7
LU-17269 obdclass: fix locking for class_register/deregister

Prevent registration and deregistration from racing with
each other. Otherwise, we could see a crash.

Test-Parameters: testlist=conf-sanity env=ONLY=41c,ONLY_REPEAT=30
Signed-off-by: Timothy Day <timday@amazon.com>
Change-Id: I4d512dcc8778c5116c1d6037ed2b7f486a7bc0dc
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54747
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/obdclass/genops.c
lustre/tests/conf-sanity.sh