HomeFreeBSD

Linux 5.3 compat: rw_semaphore owner

Description

Linux 5.3 compat: rw_semaphore owner

Commit https://github.com/torvalds/linux/commit/94a9717b updated the
rwsem's owner field to contain additional flags describing the rwsem's
state. Rather then update the wrappers to mask out these bits, the
code no longer relies on the owner stored by the kernel. This does
increase the size of a krwlock_t but it makes the implementation
less sensitive to future kernel changes.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9029

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jul 12 2019, 8:27 PM
Parents
rGa649768a1771: Fix lockdep recursive locking false positive in dbuf_destroy
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG041205afee7e: Linux 5.3 compat: rw_semaphore owner (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jul 17 2019, 10:07 PM