]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
rbd: allocate img_request with GFP_NOIO instead GFP_ATOMIC
authorIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 5 Aug 2014 07:25:54 +0000 (11:25 +0400)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Thu, 7 Aug 2014 12:00:52 +0000 (16:00 +0400)
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>
drivers/block/rbd.c

index 4515b128d0b48e02cf6fe961026682c38d275f9e..a5ebcf28e041201e18bad990e76cdc84449f22fb 100644 (file)
@@ -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;