FIFO_LOCK_POOL
static struct lock fifo_locks[FIFO_LOCK_POOL];
for (i = 0; i < FIFO_LOCK_POOL; ++i)
#define FIFO_LOCK_MASK (FIFO_LOCK_POOL - 1)