HomeFreeBSD

Remove checks for mandatory locks

Description

Remove checks for mandatory locks

The Linux VFS handles mandatory locks generically so we shouldn't
need to check for conflicting locks in zfs_read(), zfs_write(), or
zfs_freesp(). Linux 3.18 removed the lock_may_read() and
lock_may_write() interfaces which we were relying on for this
purpose. Rather than emulating those interfaces we remove the
redundant checks.

Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2804

Details

Provenance
Ned Bass <bass6@llnl.gov>Authored on Oct 16 2014, 8:52 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 22 2014, 6:06 PM
Parents
rG88904bb3e3f4: Illumos 5162 - zfs recv should use loaned arc buffer to avoid copy
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGbc151f7b312d: Remove checks for mandatory locks (authored by Ned Bass <bass6@llnl.gov>).Oct 22 2014, 6:06 PM