Skip to content
Commit be987fdb authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Jens Axboe
Browse files

block: fix deadlock in blk_abort_queue() for drivers that readd to timeout list



blk_abort_queue() iterates the timeout list and aborts each request on the
list, but if the driver error handling readds a request to the timeout list
during this processing, we could be looping forever. Fix this by splicing
current entries to a local list and run over that list instead.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 41b8c853
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment