]> granicus.if.org Git - zfs/commit
Fix snapshot automount race cause EREMOTE
authorChunwei Chen <david.chen@osnexus.com>
Fri, 11 Dec 2015 23:24:34 +0000 (15:24 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 14 Dec 2015 20:06:31 +0000 (12:06 -0800)
commit199766017076de5bddd0dad4f95f29361fc04169
treef5db30f485fb80997e1c5c3d07488133362eb820
parent5ed27c572cbb051cbed91a9cce1355312fa7913b
Fix snapshot automount race cause EREMOTE

When a concorrent mount finishes just before calling to
zfsctl_snapshot_ismounted, if we return EISDIR, the VFS will return
with EREMOTE. We should instead just return 0, so VFS may retry and
would likely notice the dentry is alreadly mounted. This will be
inline with when usermode helper return EBUSY.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/zfs/zfs_ctldir.c