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.
This commit is contained in:
parent
4b55b30394
commit
ea196f5fc6
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user