Date: Wed, 1 Jun 2011 21:00:28 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/fs/nfsclient nfs_clbio.c src/sys/fs/nwfs nwfs_io.c src/sys/fs/smbfs smbfs_io.c src/sys/nfsclient nfs_bio.c src/sys/vm vm_object.c vnode_pager.c vnode_pager.h Message-ID: <201106012100.p51L0nUd075933@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2011-06-01 21:00:28 UTC
FreeBSD src repository
Modified files:
sys/fs/nfsclient nfs_clbio.c
sys/fs/nwfs nwfs_io.c
sys/fs/smbfs smbfs_io.c
sys/nfsclient nfs_bio.c
sys/vm vm_object.c vnode_pager.c vnode_pager.h
Log:
SVN rev 222586 on 2011-06-01 21:00:28Z by kib
In the VOP_PUTPAGES() implementations, change the default error from
VM_PAGER_AGAIN to VM_PAGER_ERROR for the uwritten pages. Return
VM_PAGER_AGAIN for the partially written page. Always forward at least
one page in the loop of vm_object_page_clean().
VM_PAGER_ERROR causes the page reactivation and does not clear the
page dirty state, so the write is not lost.
The change fixes an infinite loop in vm_object_page_clean() when the
filesystem returns permanent errors for some page writes.
Reported and tested by: gavin
Reviewed by: alc, rmacklem
MFC after: 1 week
Revision Changes Path
1.23 +4 -11 src/sys/fs/nfsclient/nfs_clbio.c
1.57 +3 -8 src/sys/fs/nwfs/nwfs_io.c
1.57 +3 -8 src/sys/fs/smbfs/smbfs_io.c
1.190 +2 -6 src/sys/nfsclient/nfs_bio.c
1.443 +15 -0 src/sys/vm/vm_object.c
1.265 +18 -1 src/sys/vm/vnode_pager.c
1.22 +3 -0 src/sys/vm/vnode_pager.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106012100.p51L0nUd075933>
