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:
Alexander Motin 2015-03-15 22:44:53 +00:00
parent ad6fc754f3
commit e365f36c32
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280126

View File

@ -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,