mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 04:36:22 +00:00
scst_targ: Revert "scst: Fix __scst_init_cmd()"
This reverts commit1a15ee560c. Commit398d41e753("scst: Revert "Increase tgt_dev_cmd_count by one" (r8465)") reverted commit[1]. But there was no revert for commit[2], so add it. [1] Commit5b0f9ef0b9("scst: Increase tgt_dev_cmd_count by one") [2] Commit1a15ee560c("scst: Fix __scst_init_cmd()")
This commit is contained in:
@@ -4334,7 +4334,7 @@ static int __scst_init_cmd(struct scst_cmd *cmd)
|
||||
|
||||
scst_set_cmd_state(cmd, SCST_CMD_STATE_PARSE);
|
||||
|
||||
cnt = atomic_read(&tgt_dev->tgt_dev_cmd_count) - 1;
|
||||
cnt = atomic_read(&tgt_dev->tgt_dev_cmd_count);
|
||||
if (unlikely(cnt > dev->max_tgt_dev_commands)) {
|
||||
TRACE(TRACE_FLOW_CONTROL,
|
||||
"Too many pending commands (%d) in "
|
||||
|
||||
Reference in New Issue
Block a user