summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2017-10-01 16:57:08 +0000
committeralc <alc@FreeBSD.org>2017-10-01 16:57:08 +0000
commite877a47623bdefc946254d5f2cb02c282c43a6a7 (patch)
tree6eba9f46ed6b9087cf1c812600673be36c14180e
parente5afbd0e3549c2e915fd749e6bafddcf0352f01f (diff)
downloadFreeBSD-src-e877a47623bdefc946254d5f2cb02c282c43a6a7.zip
FreeBSD-src-e877a47623bdefc946254d5f2cb02c282c43a6a7.tar.gz
MFC r323961
Since the page "frame" doesn't belong to a vm object, it can't be paged out. Since it can't be paged out, it is never actually enqueued in a paging queue. Nonetheless, passing PQ_INACTIVE to vm_page_unwire() creates the appearance that the page "frame" is being enqueued in the inactive queue. As of r288122, we can avoid this false impression by passing PQ_NONE.
-rw-r--r--sys/dev/ti/if_ti.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c
index d3f15fe..421f5fd 100644
--- a/sys/dev/ti/if_ti.c
+++ b/sys/dev/ti/if_ti.c
@@ -1621,7 +1621,7 @@ ti_newbuf_jumbo(struct ti_softc *sc, int idx, struct mbuf *m_old)
}
sf[i] = sf_buf_alloc(frame, SFB_NOWAIT);
if (sf[i] == NULL) {
- vm_page_unwire(frame, PQ_INACTIVE);
+ vm_page_unwire(frame, PQ_NONE);
vm_page_free(frame);
device_printf(sc->ti_dev, "buffer allocation "
"failed -- packet dropped!\n");
OpenPOWER on IntegriCloud