]> git.baikalelectronics.ru Git - kernel.git/commit
block: cfq_cpd_alloc() should use @gfp
authorTejun Heo <tj@kernel.org>
Thu, 10 Nov 2016 16:16:37 +0000 (11:16 -0500)
committerJens Axboe <axboe@fb.com>
Thu, 10 Nov 2016 17:10:04 +0000 (10:10 -0700)
commit32598251bff2d0f0d58c9ce488189d01f29b7a07
treeba0562eb2a24164629d6cbc90f864642ba507665
parente6c7fd918066908a943cccd3796fd025e30e7ae0
block: cfq_cpd_alloc() should use @gfp

cfq_cpd_alloc() which is the cpd_alloc_fn implementation for cfq was
incorrectly hard coding GFP_KERNEL instead of using the mask specified
through the @gfp parameter.  This currently doesn't cause any actual
issues because all current callers specify GFP_KERNEL.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 1249834b833f ("blkcg: replace blkcg_policy->cpd_size with ->cpd_alloc/free_fn() methods")
Signed-off-by: Jens Axboe <axboe@fb.com>
block/cfq-iosched.c