From a1b613af753ea29f70c640e5126b0b1d3e4a1da3 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 19 Feb 2016 03:12:53 +0000 Subject: [PATCH] iscsi-scst: clarify comment git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6811 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/nthread.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/iscsi-scst/kernel/nthread.c b/iscsi-scst/kernel/nthread.c index 5701b8b93..42a6c96c8 100644 --- a/iscsi-scst/kernel/nthread.c +++ b/iscsi-scst/kernel/nthread.c @@ -868,6 +868,12 @@ static int process_read_io(struct iscsi_conn *conn, int *closed) /* * This command not yet received on the aborted * time, so shouldn't be affected by any abort. + * It should not be affected by conn_abort() + * as well, because close connection is initiated + * from single (this) read thread, so conn_abort() + * call stack can not be initiated in parallel to + * receive all the data event (do_recv() has check + * of conn->closing in the beginning) */ EXTRACHECKS_BUG_ON(cmnd->prelim_compl_flags != 0);