diff options
author | Brian Behlendorf <[email protected]> | 2021-08-05 14:35:34 -0700 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2021-09-14 14:30:13 -0700 |
commit | 32a971e7499a5a83ce9921a0f36a3d127b1b57e4 (patch) | |
tree | cdaba34e4a1d79141726a942e0780d310aa54b2b /module | |
parent | c07ed695778b8593fbda88a0343fe831465ab91e (diff) |
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 #12440
Closes #12066
Diffstat (limited to 'module')
-rw-r--r-- | module/os/linux/zfs/zvol_os.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/module/os/linux/zfs/zvol_os.c b/module/os/linux/zfs/zvol_os.c index 8b29d73a3..c17423426 100644 --- a/module/os/linux/zfs/zvol_os.c +++ b/module/os/linux/zfs/zvol_os.c @@ -837,6 +837,9 @@ zvol_alloc(dev_t dev, const char *name) /* Disable write merging in favor of the ZIO pipeline. */ blk_queue_flag_set(QUEUE_FLAG_NOMERGES, zso->zvo_queue); + /* Enable /proc/diskstats */ + blk_queue_flag_set(QUEUE_FLAG_IO_STAT, zso->zvo_queue); + zso->zvo_queue->queuedata = zv; zso->zvo_dev = dev; zv->zv_open_count = 0; |