aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl/ctl_frontend_iscsi.c
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2018-08-21 14:34:24 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2018-08-21 14:34:24 +0000
commit3b95cface136029fde3bef18dbe4424b0594904a (patch)
tree01ea7f111f657b5e2d39e726d41311480d6de4e0 /sys/cam/ctl/ctl_frontend_iscsi.c
parent5dff1c384534bb19b9c86270e6cde8dcc69713ed (diff)
downloadsrc-3b95cface136029fde3bef18dbe4424b0594904a.tar.gz
src-3b95cface136029fde3bef18dbe4424b0594904a.zip
Remove unneccessary code, which also introduced a (very minor)
race condition, due to a missing call to cfiscsi_target_release(). Discussed with: mav@ Tested by: Eugene M. Zheganin <emz at norma.perm.ru> (earlier version) MFC after: 2 weeks Sponsored by: playkey.net
Notes
Notes: svn path=/head/; revision=338139
Diffstat (limited to 'sys/cam/ctl/ctl_frontend_iscsi.c')
-rw-r--r--sys/cam/ctl/ctl_frontend_iscsi.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/cam/ctl/ctl_frontend_iscsi.c b/sys/cam/ctl/ctl_frontend_iscsi.c
index 22a5b3e1fb9d..2d3766a8e73b 100644
--- a/sys/cam/ctl/ctl_frontend_iscsi.c
+++ b/sys/cam/ctl/ctl_frontend_iscsi.c
@@ -2233,12 +2233,6 @@ cfiscsi_ioctl_port_remove(struct ctl_req *req)
"can't find target \"%s\"", target);
return;
}
- if (ct->ct_state != CFISCSI_TARGET_STATE_ACTIVE) {
- req->status = CTL_LUN_ERROR;
- snprintf(req->error_str, sizeof(req->error_str),
- "target \"%s\" is already dying", target);
- return;
- }
ct->ct_state = CFISCSI_TARGET_STATE_DYING;
ctl_port_offline(&ct->ct_port);