diff options
author | Mike Christie | 2017-10-25 18:47:15 +0200 |
---|---|---|
committer | Nicholas Bellinger | 2017-11-04 23:01:55 +0100 |
commit | 0d44374c1aaec7c81b470d3b5f955bc270711f9c (patch) | |
tree | 338c424b55d9df66a5b313ebd9e0b45856139c7d /arch/frv | |
parent | target: return SAM_STAT_TASK_SET_FULL for TCM_OUT_OF_RESOURCES (diff) | |
download | kernel-qcow2-linux-0d44374c1aaec7c81b470d3b5f955bc270711f9c.tar.gz kernel-qcow2-linux-0d44374c1aaec7c81b470d3b5f955bc270711f9c.tar.xz kernel-qcow2-linux-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/frv')
0 files changed, 0 insertions, 0 deletions