]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 21 May 2014 20:01:15 +0000 (14:01 -0600)
commitd80a1d5e4ed969ae92b156d4b1c6c3647065c9c3
tree614cc76c04c6a7e17278839d28b3e26608a63f82
parentcfdf45be0808b4f39450128e97fec4d46e056d03
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