Linux cleanup: zvol_discard() should only call blk_queue_io_stat() once

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14575
This commit is contained in:
Richard Yao 2023-03-04 16:48:29 -05:00 committed by Brian Behlendorf
parent f9e109223b
commit 5dd0f019cd

View File

@ -342,8 +342,7 @@ zvol_discard(zv_request_t *zvr)
struct request_queue *q = zv->zv_zso->zvo_queue; struct request_queue *q = zv->zv_zso->zvo_queue;
struct gendisk *disk = zv->zv_zso->zvo_disk; struct gendisk *disk = zv->zv_zso->zvo_disk;
unsigned long start_time = 0; unsigned long start_time = 0;
boolean_t acct = B_FALSE;
boolean_t acct = blk_queue_io_stat(q);
ASSERT3P(zv, !=, NULL); ASSERT3P(zv, !=, NULL);
ASSERT3U(zv->zv_open_count, >, 0); ASSERT3U(zv->zv_open_count, >, 0);