]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: fix bad clear of RQF_MQ_INFLIGHT in blk_mq_ct_ctx_init()
authorJens Axboe <axboe@kernel.dk>
Sun, 14 Jan 2018 17:40:45 +0000 (10:40 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 14 Jan 2018 17:46:24 +0000 (10:46 -0700)
commitec81a37d812cd4aaf3e5e168baa3e42d3c82c045
tree5fecfb6b1937bff7f721b9f8947cda6f64d25521
parent867efc7bf0448a70d8445fb6d926eecda8e27397
blk-mq: fix bad clear of RQF_MQ_INFLIGHT in blk_mq_ct_ctx_init()

A previous commit moved the clearing of rq->rq_flags later,
but we may have already set RQF_MQ_INFLIGHT when that happens.
Ensure that we correctly initialize rq->rq_flags to the
right value.

This is based on an original fix by Ming, just rewritten to not
require a conditional.

Fixes: 2df9efda1966 ("block: rearrange a few request fields for better cache layout")
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c