scst: small addition to r6724

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6728 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2015-12-11 01:51:31 +00:00
parent 53a9829a45
commit 1099848397
+7 -2
View File
@@ -647,8 +647,13 @@ again:
/*
* Testing tgt->sysfs_sess_list below without holding scst_mutex
* is safe because 'tgt' won't disappear until scst_free_tgt() is
* called below and because the mutex_lock(&scst_mutex) call below
* is safe, because:
*
* - On the init path no attempts to create new sessions for this
* target can be done in a race with this function (see above)
*
* - On the shutdown path 'tgt' won't disappear until scst_free_tgt()
* is called below and because the mutex_lock(&scst_mutex) call below
* waits until scst_free_session() has finished accessing the 'tgt'
* object.
*/