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
This commit is contained in:
parent
ad6fc754f3
commit
e365f36c32
@ -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