diff options
author | Xianting Tian <tian.xianting@h3c.com> | 2020-10-19 11:20:47 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-10-20 16:08:17 +0300 |
commit | 576e85c5e92486f1aa8be3cb1a30cb59d4415981 (patch) | |
tree | 3026de0e15160a6f1acbe5ebb1280de3c1633d5e /include/linux/iocontext.h | |
parent | 0669d2b265d0f6f9e16f1abbf5c5d2e22b219a6b (diff) | |
download | linux-576e85c5e92486f1aa8be3cb1a30cb59d4415981.tar.xz |
blk-mq: remove the calling of local_memory_node()
We don't need to check whether the node is memoryless numa node before
calling allocator interface. SLUB(and SLAB,SLOB) relies on the page
allocator to pick a node. Page allocator should deal with memoryless
nodes just fine. It has zonelists constructed for each possible nodes.
And it will automatically fall back into a node which is closest to the
requested node. As long as __GFP_THISNODE is not enforced of course.
The code comments of kmem_cache_alloc_node() of SLAB also showed this:
* Fallback to other node is possible if __GFP_THISNODE is not set.
blk-mq code doesn't set __GFP_THISNODE, so we can remove the calling
of local_memory_node().
Signed-off-by: Xianting Tian <tian.xianting@h3c.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/iocontext.h')
0 files changed, 0 insertions, 0 deletions