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
bfd93bccca
commit
2b87ed684f
@ -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…
Reference in New Issue
Block a user