]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sendfile: Clear page pointers when handling a pager error
authorMark Johnston <markj@FreeBSD.org>
Sun, 3 Jan 2021 16:35:42 +0000 (11:35 -0500)
committerMark Johnston <markj@FreeBSD.org>
Sun, 3 Jan 2021 16:50:31 +0000 (11:50 -0500)
commit214257da3a562d1a330a6ce784074a952d354754
treefbb6e228f8b61278c40b859847a52ebc8a3e22db
parent2ce5eef6e23acba92d5dc2056d9be28542802750
sendfile: Clear page pointers when handling a pager error

When INVARIANTS is configred, the sendfile_iodone() callback verifies
that pages attached to the sendfile header are wired, but we unwire all
such pages after a synchronous pager error, before calling
sendfile_iodone().

Reported by: pho
Tested by: pho
Sponsored by: The FreeBSD Foundation
sys/kern/kern_sendfile.c