summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorIlya Dryomov <ilya.dryomov@inktank.com>2014-08-05 09:25:54 +0200
committerIlya Dryomov <ilya.dryomov@inktank.com>2014-08-07 14:00:52 +0200
commit7a716aac01eedb8a7ebf36a0e81237c56f9f1bc1 (patch)
tree372bce9818d6de669b70e754161576d27a1d6428 /drivers/block
parentrbd: rework rbd_request_fn() (diff)
downloadlinux-7a716aac01eedb8a7ebf36a0e81237c56f9f1bc1.tar.xz
linux-7a716aac01eedb8a7ebf36a0e81237c56f9f1bc1.zip
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>
Diffstat (limited to 'drivers/block')
-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 4515b128d0b4..a5ebcf28e041 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;