Page MenuHomeFreeBSD

extattr_list_vp: Only take shared vnode lock
ClosedPublic

Authored by cem on Feb 5 2019, 1:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 4, 1:41 PM
Unknown Object (File)
Nov 24 2024, 8:34 PM
Unknown Object (File)
Nov 24 2024, 8:31 PM
Unknown Object (File)
Nov 24 2024, 8:30 PM
Unknown Object (File)
Nov 24 2024, 8:30 PM
Unknown Object (File)
Nov 24 2024, 8:30 PM
Unknown Object (File)
Nov 8 2024, 7:02 AM
Unknown Object (File)
Nov 1 2024, 3:02 PM
Subscribers

Details

Summary

List is a 'read'-type operation that does not modify shared state; it's safe
for multiple thread to proceed concurrently. This is reflected in the vnode
operation LISTEXTATTR locking protocol specification, which only requires a
shared lock.

(Similar to previous r248933.)

Reported by: Case van Rij <case.vanrij AT isilon.com>

Test Plan

Suggestions welcome

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Feb 5 2019, 2:08 AM

Lock acquisition can be moved few lines later, after branching on data. Similarly, unlock can be done earlier.

In D19082#408030, @mjg wrote:

Lock acquisition can be moved few lines later, after branching on data. Similarly, unlock can be done earlier.

Ok, will do.

This revision was automatically updated to reflect the committed changes.