From 5dd0f019cd1c579c42f6c3d06b0ac1b03be342ba Mon Sep 17 00:00:00 2001 From: Richard Yao Date: Sat, 4 Mar 2023 16:48:29 -0500 Subject: [PATCH] Linux cleanup: zvol_discard() should only call blk_queue_io_stat() once Reviewed-by: Brian Behlendorf Signed-off-by: Richard Yao Closes #14575 --- module/os/linux/zfs/zvol_os.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/os/linux/zfs/zvol_os.c b/module/os/linux/zfs/zvol_os.c index 01e6456207..cdf32c78b4 100644 --- a/module/os/linux/zfs/zvol_os.c +++ b/module/os/linux/zfs/zvol_os.c @@ -342,8 +342,7 @@ zvol_discard(zv_request_t *zvr) struct request_queue *q = zv->zv_zso->zvo_queue; struct gendisk *disk = zv->zv_zso->zvo_disk; unsigned long start_time = 0; - - boolean_t acct = blk_queue_io_stat(q); + boolean_t acct = B_FALSE; ASSERT3P(zv, !=, NULL); ASSERT3U(zv->zv_open_count, >, 0);