blk-mq: ensure that we set REQ_IO_STAT so diskstats work
authorJens Axboe <axboe@kernel.dk>
Fri, 24 Jan 2014 21:09:06 +0000 (13:09 -0800)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:40 +0000 (12:54 -0600)
commit55198ca78ecf2d4433842c3125c2b93f55adbc88
tree44b3c5dbc4d90985a0dc1e544c206de4202d88fa
parent1b274df5f1c0526e51063153efc1282ab67c7ebe
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: Dave Chinner <david@fromorbit.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blkdev.h