aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2017-10-25 11:47:15 -0500
committerNicholas Bellinger <nab@linux-iscsi.org>2017-11-04 15:01:55 -0700
commit0d44374c1aaec7c81b470d3b5f955bc270711f9c (patch)
tree338c424b55d9df66a5b313ebd9e0b45856139c7d /arch
parenttarget: return SAM_STAT_TASK_SET_FULL for TCM_OUT_OF_RESOURCES (diff)
downloadlinux-dev-0d44374c1aaec7c81b470d3b5f955bc270711f9c.tar.xz
linux-dev-0d44374c1aaec7c81b470d3b5f955bc270711f9c.zip
tcmu: fix double se_cmd completion
If cmd_time_out != 0, then tcmu_queue_cmd_ring could end up sleeping waiting for ring space, timing out and then returning failure to lio, and tcmu_check_expired_cmd could also detect the timeout and call target_complete_cmd on the cmd. This patch just delays setting up the deadline value and adding the cmd to the udev->commands idr until we have allocated ring space and are about to send the cmd to userspace. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions