]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsclient: limit situations when we do unlocked read-ahead by nfsiod
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 1 Jan 2024 22:22:44 +0000 (00:22 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Fri, 5 Jan 2024 04:58:58 +0000 (06:58 +0200)
commit70dc6b2ce314a0f32755005ad02802fca7ed186e
tree7e01688b98f870f20be21fc74384251a95f42625
parent2d33ad48bd37f27925e4c46c798f8f2d23a2b501
nfsclient: limit situations when we do unlocked read-ahead by nfsiod

If there were or are writeable mappings, read-ahead might overwrite the
dirty pages data that is not yet reflected as a delayed write in the
matching buffer state.

Noted by: rmacklem
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/fs/nfsclient/nfs_clbio.c