]> git.baikalelectronics.ru Git - kernel.git/commit
block: allocate request memory local to request queue
authorDavid Rientjes <rientjes@google.com>
Tue, 24 Mar 2015 23:21:16 +0000 (16:21 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 25 Mar 2015 02:00:07 +0000 (20:00 -0600)
commitb805335c6becf4543c2db3bd505f43a5ed99f47c
tree490ba0bdb3ab6d72974ed73c8adcdc3ce0b12329
parent0afd411e007d535e54716150bf5f86077cabea01
block: allocate request memory local to request queue

blk_init_rl() allocates a mempool using mempool_create_node() with node
local memory.  This only allocates the mempool and element list locally
to the requeue queue node.

What we really want to do is allocate the request itself local to the
queue.  To do this, we need our own alloc and free functions that will
allocate from request_cachep and pass the request queue node in to prefer
node local memory.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c