We can't mark sess as shutting down in close_conn(), because at that time it might...
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Tue, 21 Apr 2009 18:25:46 +0000 (18:25 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Tue, 21 Apr 2009 18:25:46 +0000 (18:25 +0000)
commitc272ab609352a77f104841da143bf664bb9f10f7
tree8e7693029a251fc53c29362faaef696e1e894b94
parentfab8bc68f4e070ef8600df52690306d2d094f592
We can't mark sess as shutting down in close_conn(), because at that time it might have pending commands. Otherwise, in case of reinstatement it might lead to data corruption, because commands in being reinstated session can be executed after commands in the new session.

Found out by Hari Subramanian <hari@vmware.com>

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@792 d57e44dd-8a1f-0410-8b47-8ef2f437770f
iscsi-scst/kernel/nthread.c