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:
parent
2073a41a42
commit
f6d76b0ec1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254715
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user