mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
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:
parent
f9e109223b
commit
5dd0f019cd
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user