HomeFreeBSD

getblk: fail faster with GB_LOCK_NOWAIT

Description

getblk: fail faster with GB_LOCK_NOWAIT

If we asked not to wait on a lock, and then we failed to get a buf lock
because we would have had to wait, then just return the error. This
avoids taking the bufobj lock and a second trip to lockmgr.

Reviewed by: mckusick, kib, markj
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D45245

Details

Provenance
rlibbyAuthored on May 21 2024, 5:21 PM
Reviewer
mckusick
Differential Revision
D45245: getblk: fail faster with GB_LOCK_NOWAIT
Parents
rGbd56aad33c25: buf: define and use BUF_DISOWNED
Branches
Unknown
Tags
Unknown