mirror of
https://github.com/SCST-project/scst.git
synced 2026-07-20 06:52:18 +00:00
scst: Fix a recently introduced race condition (merge r4491 from trunk)
Make scst_unregister_target() wait again until the session unregistration callbacks have finished instead of waiting only until all sessions have been unregistered. git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4650 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -597,7 +597,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