Skip to content

Commit

Permalink
rbd: allocate img_request with GFP_NOIO instead GFP_ATOMIC
Browse files Browse the repository at this point in the history
Now that rbd_img_request_create() is called from work functions, no
need to use GFP_ATOMIC.

Signed-off-by: Ilya Dryomov <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
  • Loading branch information
idryomov committed Aug 7, 2014
1 parent bc1ecc6 commit 7a716aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7a716aa

Please sign in to comment.