Skip to content
Commit 7ba1fbaa authored by Jens Axboe's avatar Jens Axboe
Browse files

block: use rq complete marking in blk_abort_request()



We cannot abort a request if we raced with the timeout handler already,
or with the IO completion. So make blk_abort_request() mark the request
as complete, and only continue if we succeeded.

Found and suggested by Mike Anderson <andmike@linux.vnet.ibm.com>

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 581d4e28
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