Skip to content
Commit 94eddfbe authored by Jens Axboe's avatar Jens Axboe
Browse files

blk-mq: ensure that we set REQ_IO_STAT so diskstats work



If disk stats are enabled on the queue, a request needs to
be marked with REQ_IO_STAT for accounting to be active on
that request. This fixes an issue with virtio-blk not
showing up in /proc/diskstats after the conversion to
blk-mq.

Add QUEUE_FLAG_MQ_DEFAULT, setting stats and same cpu-group
completion on by default.

Reported-by: default avatarDave Chinner <david@fromorbit.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 34f2fd8d
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