scst_targ: Clarify a comment

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5465 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2014-04-24 02:33:07 +00:00
parent 9f3c9df526
commit 476e5968a4

View File

@@ -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) &&