mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
Revert r5964 as not needed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5977 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1738,16 +1738,8 @@ static int scst_tgt_pre_exec(struct scst_cmd *cmd)
|
||||
|
||||
out_descr:
|
||||
if (unlikely(cmd->op_flags & SCST_DESCRIPTORS_BASED)) {
|
||||
if (scst_cmd_atomic(cmd)) {
|
||||
/*
|
||||
* Switch to thread context such that
|
||||
* scst_parse_descriptors() can use GFP_KERNEL instead
|
||||
* of GFP_ATOMIC.
|
||||
*/
|
||||
res = SCST_CMD_STATE_RES_NEED_THREAD;
|
||||
goto out;
|
||||
}
|
||||
if (unlikely(scst_parse_descriptors(cmd) != 0))
|
||||
int r = scst_parse_descriptors(cmd);
|
||||
if (unlikely(r != 0))
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user