+9
−2
Loading
Multiple initiators share a target:
+--+ +--+ +--+ +--+
|Im| ... |Ix| |Iy| |Iz|
+--+ +--+ +--+ +--+
| | | |
\ | / /
+---------------------+
| Target |
+---------------------+
|
+---------------------+
| Bdev |
+---------------------+
Once initiatorM(Im) gets disconnected, SPDK tries to cancel the
inflight IOs of Im by resetting backend bdev. Unfortunately, the
inflight IOs of Ix, Iy and Iz are canceled together,
'SENSE KEY:COMMAND ABORTED' error floods at that moment.
To avoid this issue, drain the inflight IOs of the exited connection
intead.
Change-Id: Ic7668d0be13052b6f4e3b0fd52c21db38f22ecf0
Signed-off-by:
zhenwei pi <pizhenwei@bytedance.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20469
Reviewed-by:
Jim Harris <jim.harris@samsung.com>
Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com>