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)
Jan 16 2024, 10:48 PM
Unknown Object (File)
Dec 20 2023, 5:48 AM
Unknown Object (File)
Nov 24 2023, 6:42 AM
Unknown Object (File)
Sep 19 2023, 11:38 PM
Unknown Object (File)
Sep 7 2023, 9:19 PM
Unknown Object (File)
Sep 7 2023, 9:18 PM
Unknown Object (File)
Sep 7 2023, 9:18 PM
Unknown Object (File)
Sep 1 2023, 11:56 PM
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.