diff options
author | Jianchao Wang <jianchao.w.wang@oracle.com> | 2017-11-02 18:24:32 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-11-04 21:38:40 +0300 |
commit | 6d6f167ce74158903e7fc20dfbecf89c71aa1c00 (patch) | |
tree | 33d6a3c6e22f9df0f2eca95b2bc21f9a72c3eda4 /block/blk-flush.c | |
parent | e84010732225c4c7c3464ee1169d395751c3adfa (diff) | |
download | linux-6d6f167ce74158903e7fc20dfbecf89c71aa1c00.tar.xz |
blk-mq: put the driver tag of nxt rq before first one is requeued
When freeing the driver tag of the next rq with an I/O scheduler
configured, we get the first entry of the list. However, this can
race with requeue of a request, and we end up getting the wrong request
from the head of the list. Free the driver tag of next rq before the
failed one is requeued in the failure branch of queue_rq callback.
Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-flush.c')
0 files changed, 0 insertions, 0 deletions