summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Dryomov <ilya.dryomov@inktank.com>2014-08-05 11:25:54 +0400
committerIlya Dryomov <ilya.dryomov@inktank.com>2014-08-07 16:00:52 +0400
commit7a716aac01eedb8a7ebf36a0e81237c56f9f1bc1 (patch)
tree372bce9818d6de669b70e754161576d27a1d6428
parentbc1ecc65a259fa9333dc8bd6a4ba0cf03b7d4bf8 (diff)
downloadop-kernel-dev-7a716aac01eedb8a7ebf36a0e81237c56f9f1bc1.zip
op-kernel-dev-7a716aac01eedb8a7ebf36a0e81237c56f9f1bc1.tar.gz
rbd: allocate img_request with GFP_NOIO instead GFP_ATOMIC
Now that rbd_img_request_create() is called from work functions, no need to use GFP_ATOMIC. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Alex Elder <elder@linaro.org>
-rw-r--r--drivers/block/rbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 4515b12..a5ebcf2 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -2061,7 +2061,7 @@ static struct rbd_img_request *rbd_img_request_create(
{
struct rbd_img_request *img_request;
- img_request = kmem_cache_alloc(rbd_img_request_cache, GFP_ATOMIC);
+ img_request = kmem_cache_alloc(rbd_img_request_cache, GFP_NOIO);
if (!img_request)
return NULL;
OpenPOWER on IntegriCloud