mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user