mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 12:41:26 +00:00
Fix a recently introduced race condition
Make scst_unregister_target() wait again until the session unregistration callbacks have finished instead of waiting only until all sessions have been unregistered. Signed-off-by: Bart Van Assche <bvanassche@acm.org> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4491 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -598,7 +598,7 @@ static inline int test_sess_list(struct scst_tgt *tgt)
|
||||
{
|
||||
int res;
|
||||
mutex_lock(&scst_mutex);
|
||||
res = list_empty(&tgt->sess_list);
|
||||
res = list_empty(&tgt->sysfs_sess_list);
|
||||
mutex_unlock(&scst_mutex);
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user