HomeFreeBSD

Change zfs_snapshot_lock from mutex to rw lock

Description

Change zfs_snapshot_lock from mutex to rw lock

By changing the zfs_snapshot_lock from a mutex to a rw lock the
zfsctl_lookup_objset() function can be allowed to run concurrently.
This should reduce the latency of fh_to_dentry lookups in ZFS
snapshots which are being accessed over NFS.

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Dec 10 2015, 11:53 PM
Parents
rGf22f900f15c2: Fix zfsctl_lookup_objset() deadlock
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG5ed27c572cbb: Change zfs_snapshot_lock from mutex to rw lock (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Dec 14 2015, 8:06 PM