blk-mq: save memory by freeing requests on unused hardware queues
authorJens Axboe <axboe@fb.com>
Wed, 21 May 2014 20:01:15 +0000 (14:01 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:48 +0000 (12:54 -0600)
commit82c7ff3d174961932386f7c0c23ccb8665e1ee6f
tree62de572dc189ffcc73c6c07bbe6c46af07cb9b4c
parent38f8d87ebd74a5f693cbbdf363497fb8ccbe2085
blk-mq: save memory by freeing requests on unused hardware queues

Depending on the topology of the machine and the number of queues
exposed by a device, we can end up in a situation where some of
the hardware queues are unused (as in, they don't map to any
software queues). For this case, free up the memory used by the
request map, as we will not use it. This can be a substantial
amount of memory, depending on the number of queues vs CPUs and
the queue depth of the device.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c