|
From: <bva...@us...> - 2019-07-23 21:06:07
|
Revision: 8472
http://sourceforge.net/p/scst/svn/8472
Author: bvassche
Date: 2019-07-23 21:06:03 +0000 (Tue, 23 Jul 2019)
Log Message:
-----------
scst: Fix __scst_init_cmd()
Fixes: 5b0f9ef0b935 ("scst: Increase tgt_dev_cmd_count by one") / r8465.
Modified Paths:
--------------
trunk/scst/src/scst_targ.c
Modified: trunk/scst/src/scst_targ.c
===================================================================
--- trunk/scst/src/scst_targ.c 2019-07-23 19:18:38 UTC (rev 8471)
+++ trunk/scst/src/scst_targ.c 2019-07-23 21:06:03 UTC (rev 8472)
@@ -5142,7 +5142,7 @@
scst_set_cmd_state(cmd, SCST_CMD_STATE_PARSE);
- cnt = atomic_inc_return(&tgt_dev->tgt_dev_cmd_count);
+ cnt = atomic_inc_return(&tgt_dev->tgt_dev_cmd_count) - 1;
if (unlikely(cnt > dev->max_tgt_dev_commands)) {
TRACE(TRACE_FLOW_CONTROL,
"Too many pending commands (%d) in "
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|