Skip to content

Commit 32a971e

Browse files
behlendorftonyhutter
authored andcommitted
Enable /proc/diskstats for zvols
The /proc/diskstats accounting needs to be explicitly enabled for block devices which do not use multi-queue. Reviewed-by: Tony Nguyen <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#12440 Closes openzfs#12066
1 parent c07ed69 commit 32a971e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

module/os/linux/zfs/zvol_os.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,9 @@ zvol_alloc(dev_t dev, const char *name)
837837
/* Disable write merging in favor of the ZIO pipeline. */
838838
blk_queue_flag_set(QUEUE_FLAG_NOMERGES, zso->zvo_queue);
839839

840+
/* Enable /proc/diskstats */
841+
blk_queue_flag_set(QUEUE_FLAG_IO_STAT, zso->zvo_queue);
842+
840843
zso->zvo_queue->queuedata = zv;
841844
zso->zvo_dev = dev;
842845
zv->zv_open_count = 0;

0 commit comments

Comments
 (0)