diff options
author | mav <mav@FreeBSD.org> | 2015-03-27 08:57:38 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-03-27 08:57:38 +0000 |
commit | ea196f5fc68d3542f51681110e9ad744c989fb54 (patch) | |
tree | 3828af6ff6b65a50ee7162f78a81926c13ce7ede /usr.sbin | |
parent | 4b55b3039458f78b33fedc1b6f6125af629c3bc3 (diff) | |
download | FreeBSD-src-ea196f5fc68d3542f51681110e9ad744c989fb54.zip FreeBSD-src-ea196f5fc68d3542f51681110e9ad744c989fb54.tar.gz |
MFC r280126: 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.
Diffstat (limited to 'usr.sbin')
-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, |