Whamcloud - gitweb
LU-14048 obd: fix race between connect vs disconnect
authorYang Sheng <ys@whamcloud.com>
Thu, 18 Feb 2021 15:22:09 +0000 (23:22 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 15 Jul 2021 02:43:32 +0000 (02:43 +0000)
commit0c49b4503fc5b268e3b5f6d494e6aedde168c65b
tree23fd53322e6e3ef6a8a306fbf33d35eb82e736a8
parentf588750b86f6d32375b0ca7a1a897c066e91f067
LU-14048 obd: fix race between connect vs disconnect

The export nid hash would be removed in class_disconnect, But
still a race window exists in target_handle_connect to add it back.
Then the process of cleanup will wait infinity.

Lustre-commit: 8081979e76b3c07f629e0943fcd6d8b0285719e3
Lustre-change: https://review.whamcloud.com/41687

Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: I9ad3edbd040b81e2aef7ae22494302d9a478d65b
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44226
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ldlm/ldlm_lib.c