mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Reintroduce IO accounting on zvols on Linux 3.19+
zfsonlinux/zfs@e20cd6f7a8 caused us to lose IO accounting on zvols. When I originally wrote that last year, the symbols we needed to maintain IO accounting were GPL exported, but torvalds/linux@394ffa503b provided suitable symbols for restoring this functionality 4 months later. We can call them to restore the IO accounting on Linux 3.19 and later as well as any older kernels where that patch is backported. Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #3741
This commit is contained in:
committed by
Brian Behlendorf
parent
1e17e910ea
commit
8198d18ca7
@@ -343,4 +343,9 @@ blk_queue_discard_granularity(struct request_queue *q, unsigned int dg)
|
||||
*/
|
||||
#define VDEV_HOLDER ((void *)0x2401de7)
|
||||
|
||||
#ifndef HAVE_GENERIC_IO_ACCT
|
||||
#define generic_start_io_acct(rw, slen, part) ((void)0)
|
||||
#define generic_end_io_acct(rw, part, start_jiffies) ((void)0)
|
||||
#endif
|
||||
|
||||
#endif /* _ZFS_BLKDEV_H */
|
||||
|
||||
Reference in New Issue
Block a user