]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/zfs_vnops.c
Fix NULL pointer when O_SYNC read in snapshot
authorChunwei Chen <tuxoko@gmail.com>
Fri, 11 Aug 2017 15:57:54 +0000 (08:57 -0700)
committerTony Hutter <hutter2@llnl.gov>
Mon, 21 Aug 2017 23:41:22 +0000 (16:41 -0700)
commitaec43188702b16f805aa71234a4dc5c60398af43
tree4b8729a1c713123815186bc1d1458e83863e727c
parent2d9b57d39fde8906ab07fbb130412970f7801329
Fix NULL pointer when O_SYNC read in snapshot

When doing read on a file open with O_SYNC, it will trigger zil_commit.
However for snapshot, there's no zil, so we shouldn't be doing that.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Closes #6478
Closes #6494
module/zfs/zfs_vnops.c