summaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2018-11-23 09:15:30 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2019-01-11 20:58:52 -0500
commita94a2572b97744d3a35a1996df0e5cf6b2461a4a (patch)
tree65f91fa95a66f54f0b065a0051b748196d6fed05 /drivers/scsi
parentcc29a1b0a3f2597ce887d339222fa85b9307706d (diff)
scsi: tcmu: avoid cmd/qfull timers updated whenever a new cmd comes
Currently there is one cmd timeout timer and one qfull timer for each udev, and whenever any new command is coming in we will update the cmd timer or qfull timer. For some corner cases the timers are always working only for the ringbuffer's and full queue's newest cmd. That's to say the timer won't be fired even if one cmd has been stuck for a very long time and the deadline is reached. This fix will keep the cmd/qfull timers to be pended for the oldest cmd in ringbuffer and full queue, and will update them with the next cmd's deadline only when the old cmd's deadline is reached or removed from the ringbuffer and full queue. Signed-off-by: Xiubo Li <xiubli@redhat.com> Acked-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
0 files changed, 0 insertions, 0 deletions