On 11/22/2018 07:15 PM, xiubli@xxxxxxxxxx wrote: > From: Xiubo Li <xiubli@xxxxxxxxxx> > > Currently there has one cmd timeout timer and one qfull timer for > each udev, and whenever there has any new coming cmd it will update > the cmd timer or qfull timer. And for some corner case 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 there has one cmd > 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@xxxxxxxxxx> Work ok for me. Acked-by: Mike Christie <mchristi@xxxxxxxxxx>