diff options
author | Alan Cox <alc@FreeBSD.org> | 2004-04-03 09:16:27 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2004-04-03 09:16:27 +0000 |
commit | 121230a40d493c631338118c4ba7b694746313ca (patch) | |
tree | 0da7662b4e3ccfb3f8999cccb8a3301194f373ce /sys/kern/uipc_cow.c | |
parent | 2cdafcbbe0ec40481d8a5abb4b2f3eb1072db03a (diff) | |
download | src-121230a40d493c631338118c4ba7b694746313ca.tar.gz src-121230a40d493c631338118c4ba7b694746313ca.zip |
In some cases, sf_buf_alloc() should sleep with pri PCATCH; in others, it
should not. Add a new parameter so that the caller can specify which is
the case.
Reported by: dillon
Notes
Notes:
svn path=/head/; revision=127788
Diffstat (limited to 'sys/kern/uipc_cow.c')
-rw-r--r-- | sys/kern/uipc_cow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_cow.c b/sys/kern/uipc_cow.c index 4a5ccd005a8b..6805804adeda 100644 --- a/sys/kern/uipc_cow.c +++ b/sys/kern/uipc_cow.c @@ -138,7 +138,7 @@ socow_setup(struct mbuf *m0, struct uio *uio) /* * Allocate an sf buf */ - sf = sf_buf_alloc(pp); + sf = sf_buf_alloc(pp, PCATCH); if (!sf) { vm_page_lock_queues(); vm_page_cowclear(pp); |