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
This commit is contained in:
parent
72ce7f29de
commit
48a9d8f214
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user