From 476e5968a40c7f271dcf514ebd710b5daa06a4de Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 24 Apr 2014 02:33:07 +0000 Subject: [PATCH] scst_targ: Clarify a comment Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5465 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_targ.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 39a17534d..e6c04567a 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -1540,7 +1540,10 @@ void scst_rx_data(struct scst_cmd *cmd, int status, break; #endif - /* Small context optimization */ + /* + * Make sure that the exec phase runs in thread context since + * invoking I/O functions from atomic context is not allowed. + */ if ((pref_context == SCST_CONTEXT_TASKLET) || (pref_context == SCST_CONTEXT_DIRECT_ATOMIC) || ((pref_context == SCST_CONTEXT_SAME) &&