diff options
author | Roland Dreier <roland@purestorage.com> | 2013-01-02 12:47:59 -0800 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-01-10 21:00:36 -0800 |
commit | 5a3b6fc0092c5f8dee7820064ee54d2631d48573 (patch) | |
tree | acd4e983a76dbcd000a58e239d61ad50ddf90cd7 /block/blk-sysfs.c | |
parent | 72b59d6ee8adaa51f70377db0a1917ed489bead8 (diff) | |
download | blackbird-op-linux-5a3b6fc0092c5f8dee7820064ee54d2631d48573.tar.gz blackbird-op-linux-5a3b6fc0092c5f8dee7820064ee54d2631d48573.zip |
target: Release se_cmd when LUN lookup fails for TMR
When transport_lookup_tmr_lun() fails and we return a task management
response from target_complete_tmr_failure(), we need to call
transport_cmd_check_stop_to_fabric() to release the last ref to the
cmd after calling se_tfo->queue_tm_rsp(), or else we will never remove
the failed TMR from the session command list (and we'll end up waiting
forever when trying to tear down the session).
(nab: Fix minor compile breakage)
Signed-off-by: Roland Dreier <roland@purestorage.com>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'block/blk-sysfs.c')
0 files changed, 0 insertions, 0 deletions