mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 19:57:43 +03:00
Revert "Remove TSD zfs_fsyncer_key"
This reverts commit 31f2b5abdf back
to the original code until the fsync(2) performance regression
can be addressed.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
@@ -2070,12 +2070,16 @@ out:
|
||||
}
|
||||
EXPORT_SYMBOL(zfs_readdir);
|
||||
|
||||
ulong_t zfs_fsync_sync_cnt = 4;
|
||||
|
||||
int
|
||||
zfs_fsync(struct inode *ip, int syncflag, cred_t *cr)
|
||||
{
|
||||
znode_t *zp = ITOZ(ip);
|
||||
zfs_sb_t *zsb = ITOZSB(ip);
|
||||
|
||||
(void) tsd_set(zfs_fsyncer_key, (void *)zfs_fsync_sync_cnt);
|
||||
|
||||
if (zsb->z_os->os_sync != ZFS_SYNC_DISABLED) {
|
||||
ZFS_ENTER(zsb);
|
||||
ZFS_VERIFY_ZP(zp);
|
||||
|
||||
Reference in New Issue
Block a user