diff options
author | tychon <tychon@FreeBSD.org> | 2014-11-09 21:08:52 +0000 |
---|---|---|
committer | tychon <tychon@FreeBSD.org> | 2014-11-09 21:08:52 +0000 |
commit | 8e07e96dc63a5ec01e7399220c689deacadbb887 (patch) | |
tree | ced49a6d646eaebb92c0fc7c3ba193fd0f31f5ae /usr.sbin | |
parent | 7a50e9619f34044744800c3bae857242bc1c9c2e (diff) | |
download | FreeBSD-src-8e07e96dc63a5ec01e7399220c689deacadbb887.zip FreeBSD-src-8e07e96dc63a5ec01e7399220c689deacadbb887.tar.gz |
To allow a request to be submitted from within the callback routine of
a completing one increase the total by 1 but don't advertise it.
Reviewed by: grehan
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bhyve/block_if.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bhyve/block_if.c b/usr.sbin/bhyve/block_if.c index 4986386..8687e9a 100644 --- a/usr.sbin/bhyve/block_if.c +++ b/usr.sbin/bhyve/block_if.c @@ -54,7 +54,7 @@ __FBSDID("$FreeBSD$"); #define BLOCKIF_SIG 0xb109b109 -#define BLOCKIF_MAXREQ 32 +#define BLOCKIF_MAXREQ 33 enum blockop { BOP_READ, @@ -600,7 +600,7 @@ blockif_queuesz(struct blockif_ctxt *bc) { assert(bc->bc_magic == BLOCKIF_SIG); - return (BLOCKIF_MAXREQ); + return (BLOCKIF_MAXREQ - 1); } int |