Page MenuHomeFreeBSD

zfs dmu_read: loosen the assertion.
ClosedPublic

Authored by kib on Mar 6 2020, 1:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 7:42 AM
Unknown Object (File)
Wed, Dec 4, 10:29 PM
Unknown Object (File)
Oct 24 2024, 8:31 PM
Unknown Object (File)
Sep 12 2024, 6:22 PM
Unknown Object (File)
Sep 7 2024, 4:05 AM
Unknown Object (File)
Sep 5 2024, 9:54 AM
Unknown Object (File)
Aug 27 2024, 11:52 PM
Unknown Object (File)
Aug 22 2024, 5:07 AM
Subscribers

Details

Summary

Since switch to the lockless grab, shared busy for ahead/behind pages allows other threads to validate and map the pages readonly.

P.S. Alternative could be to change to exclusive busy for the said pages. This should be fine both from the locking PoV (we use NOWAIT) and correctness (no overwrite of the valid data). But it reduces the parallelism for zfs_getpages().

Diff Detail

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

Event Timeline

Looks good as far as my knowledge of the recent VM changes goes.
Thank you very much!

This revision is now accepted and ready to land.Mar 6 2020, 1:52 PM

I am ok with this but eventually it likely should not be shared busy.

This revision was automatically updated to reflect the committed changes.