diff options
author | mav <mav@FreeBSD.org> | 2015-03-15 22:44:53 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-03-15 22:44:53 +0000 |
commit | 2b87ed684fc4b9268f2232f230fcd02009853169 (patch) | |
tree | 83ab3e8c3eb9c7cd9c23a280b3e0849883f30658 /usr.sbin/bhyve | |
parent | bfd93bcccaf74ce509f194d86074954a405cf646 (diff) | |
download | FreeBSD-src-2b87ed684fc4b9268f2232f230fcd02009853169.zip FreeBSD-src-2b87ed684fc4b9268f2232f230fcd02009853169.tar.gz |
Pre-allocate one extra request per processing thread.
Processing threads call callbacks before freeing requests. As result,
new requests may arrive before old ones are freed.
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r-- | usr.sbin/bhyve/block_if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/block_if.c b/usr.sbin/bhyve/block_if.c index 58960ca..b8b27a6 100644 --- a/usr.sbin/bhyve/block_if.c +++ b/usr.sbin/bhyve/block_if.c @@ -54,8 +54,8 @@ __FBSDID("$FreeBSD$"); #define BLOCKIF_SIG 0xb109b109 -#define BLOCKIF_MAXREQ 64 #define BLOCKIF_NUMTHR 8 +#define BLOCKIF_MAXREQ (64 + BLOCKIF_NUMTHR) enum blockop { BOP_READ, |