Provide a comment explaining r279688.
Suggested by: alc
This commit is contained in:
parent
c077e6287f
commit
41c895a888
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280136
@ -772,6 +772,14 @@ vnode_pager_generic_getpages(struct vnode *vp, vm_page_t *m, int bytecount,
|
||||
bsize = vp->v_mount->mnt_stat.f_iosize;
|
||||
foff = IDX_TO_OFF(m[reqpage]->pindex);
|
||||
|
||||
/*
|
||||
* Synchronous and asynchronous paging operations use different
|
||||
* free pbuf counters. This is done to avoid asynchronous requests
|
||||
* to consume all pbufs.
|
||||
* Allocate the pbuf at the very beginning of the function, so that
|
||||
* if we are low on certain kind of pbufs don't even proceed to BMAP,
|
||||
* but sleep.
|
||||
*/
|
||||
freecnt = iodone != NULL ?
|
||||
&vnode_async_pbuf_freecnt : &vnode_pbuf_freecnt;
|
||||
bp = getpbuf(freecnt);
|
||||
|
Loading…
Reference in New Issue
Block a user