scst_targ: Revert "scst: Fix __scst_init_cmd()"

This reverts commit 1a15ee560c.

Commit 398d41e753 ("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] Commit 5b0f9ef0b9 ("scst: Increase tgt_dev_cmd_count by one")
 [2] Commit 1a15ee560c ("scst: Fix __scst_init_cmd()")
This commit is contained in:
Gleb Chesnokov
2022-11-09 19:25:40 +03:00
parent 31318acbc8
commit 2bffc71dfb
+1 -1
View File
@@ -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 "