Revert "lib/iscsi: Close the being hot-removed LUN even if connection is in exiting
This reverts commit Iad6ecdc37493fa9f2d7ccab262a2c75dac2fcd48. Both estimated cause and code change were wrong and didn't fix the issue. The next patch will fix the issue. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I00c8bb515ee39522c0e744dccfb839af15e946c4 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/472895 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
368de579b6
commit
832d90c1e2
@ -500,8 +500,8 @@ _iscsi_conn_remove_lun(void *_ctx)
|
||||
assert(spdk_io_channel_get_thread(spdk_io_channel_from_ctx(conn->pg)) ==
|
||||
spdk_get_thread());
|
||||
|
||||
/* If a connection is exited, associated LUNs are already closed and just return */
|
||||
if (conn->state >= ISCSI_CONN_STATE_EXITED) {
|
||||
/* If a connection is already in stating status, just return */
|
||||
if (conn->state >= ISCSI_CONN_STATE_EXITING) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user