diff options
author | Jens Axboe <axboe@fb.com> | 2016-10-27 15:49:19 (GMT) |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-10-27 15:56:03 (GMT) |
commit | 7fe311302f7d52601cd799ad508a6f92cb3d748d (patch) | |
tree | 9ee240140ac26203b706e4b8e277dcea147f5d51 /kernel/hung_task.c | |
parent | 94d7dea448fae6cbb83395323c1d2fd7f19dc388 (diff) | |
download | linux-7fe311302f7d52601cd799ad508a6f92cb3d748d.tar.xz |
blk-mq: update hardware and software queues for sleeping alloc
If we end up sleeping due to running out of requests, we should
update the hardware and software queues in the map ctx structure.
Otherwise we could end up having rq->mq_ctx point to the pre-sleep
context, and risk corrupting ctx->rq_list since we'll be
grabbing the wrong lock when inserting the request.
Reported-by: Dave Jones <davej@codemonkey.org.uk>
Reported-by: Chris Mason <clm@fb.com>
Tested-by: Chris Mason <clm@fb.com>
Fixes: 63581af3f31e ("blk-mq: remove non-blocking pass in blk_mq_map_request")
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'kernel/hung_task.c')
0 files changed, 0 insertions, 0 deletions