]> granicus.if.org Git - zfs/commit
SEEK_HOLE should not block on txg_wait_synced()
authorDebabrata Banerjee <dbanerje@akamai.com>
Fri, 24 Mar 2017 21:28:38 +0000 (17:28 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 13 Apr 2017 17:51:20 +0000 (10:51 -0700)
commit66aca24730adfb2e3875e5148a03dd1fb435d438
tree12ce4a9e59a64c7a207703a0525238a86ba012f2
parenta44e7faa6c63998a4c058901a5c587706abe56ab
SEEK_HOLE should not block on txg_wait_synced()

Force flushing of txg's can be painfully slow when competing for disk
IO, since this is a process meant to execute asynchronously. Optimize
this path via allowing data/hole seeking if the file is clean, but if
dirty fall back to old logic. This is a compromise to disabling the
feature entirely.

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Debabrata Banerjee <dbanerje@akamai.com>
Closes #4306
Closes #5962
man/man5/zfs-module-parameters.5
module/zfs/dmu.c
module/zfs/zfs_vnops.c