From ae741601fbbba21c80b7d254ebac5c828b38a1df Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 18 Dec 2012 09:39:17 +0000 Subject: [PATCH] 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 --- scst/src/scst_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index 36d3f1900..8d83363b3 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -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; }