1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Since the 253927, which removed the soft busy call for the sf page, it

does not make sense to wait for the soft busy state of the page to
drain.  The vm object lock is dropped immediately after, so the result
of the wait is invalidated.

It might make sense to not wait for the hard busy state as well,
esp. for the fully valid page, but this is postponed for now.

Reviewed by:	alc
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2013-08-23 14:50:03 +00:00
parent 2073a41a42
commit f6d76b0ec1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254715

View File

@ -2230,7 +2230,8 @@ vn_sendfile(struct file *fp, int sockfd, struct uio *hdr_uio,
pindex = OFF_TO_IDX(off);
VM_OBJECT_WLOCK(obj);
pg = vm_page_grab(obj, pindex, VM_ALLOC_NOBUSY |
VM_ALLOC_NORMAL | VM_ALLOC_WIRED);
VM_ALLOC_IGN_SBUSY | VM_ALLOC_NORMAL |
VM_ALLOC_WIRED);
/*
* Check if page is valid for what we need,