]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: don't lose flags passed in to blk_mq_alloc_request()
authorJens Axboe <axboe@fb.com>
Thu, 26 Jan 2017 19:22:11 +0000 (12:22 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 26 Jan 2017 19:22:11 +0000 (12:22 -0700)
commit34f8960c141cd91594c181c0bdaab0a6464b32f8
tree65a3792c4862108140b9b26271788b3fb54368a6
parentb833497ec2f447cae85f6f16f24908ec914dcad1
blk-mq: don't lose flags passed in to blk_mq_alloc_request()

If we come in from blk_mq_alloc_requst() with NOWAIT set in flags,
we must ensure that we don't later overwrite that in
blk_mq_sched_get_request(). Initialize alloc_data->flags before
passing it in.

Reported-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-sched.c
block/blk-mq.c