linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* blk-mq timeout question
@ 2017-07-07 13:45 Stefan Haberland
  2017-07-10  2:23 ` Ming Lei
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Haberland @ 2017-07-07 13:45 UTC (permalink / raw)
  To: axboe; +Cc: linux-kernel

While changing the DASD device driver to use the blk-mq interfaces I 
found the following unexpected behavior:

In case of a timeout our complete callback is never called. Here is the 
sequence of events as I understood:

- timeout occurs
- blk_mq_check_expired() calls and checks blk_mark_rq_complete()
- our .timeout callback is called which returns BLK_EH_NOT_HANDLED and 
schedules delayed work
- our worker calls blk_mq_complete_request()
- this also checks blk_mark_rq_complete() and therefore never calls our 
complete callback

Question:
Should blk_clear_rq_complete() also be called for the BLK_EH_NOT_HANDLED 
case?

Regards,
Stefan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-10  2:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-07 13:45 blk-mq timeout question Stefan Haberland
2017-07-10  2:23 ` Ming Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).