svn commit: r358597 - head/sys/kern
Chuck Silvers
chs at FreeBSD.org
Wed Mar 4 00:22:52 UTC 2020
Author: chs
Date: Wed Mar 4 00:22:50 2020
New Revision: 358597
URL: https://svnweb.freebsd.org/changeset/base/358597
Log:
if vm_pager_get_pages_async() returns an error, release the sfio->nios
refcount that we took earlier that represents the I/O that ended up
not being started.
Reviewed by: glebius
Approved by: imp (mentor)
Sponsored by: Netflix
Modified:
head/sys/kern/kern_sendfile.c
Modified: head/sys/kern/kern_sendfile.c
==============================================================================
--- head/sys/kern/kern_sendfile.c Tue Mar 3 23:15:30 2020 (r358596)
+++ head/sys/kern/kern_sendfile.c Wed Mar 4 00:22:50 2020 (r358597)
@@ -454,6 +454,7 @@ sendfile_swapin(vm_object_t obj, struct sf_io *sfio, i
__func__, pa, j));
vm_page_unwire(pa[j], PQ_INACTIVE);
}
+ refcount_release(&sfio->nios);
return (EIO);
}
More information about the svn-src-head
mailing list