Skip to content

Commit 7a716aa

Browse files
committed
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>
1 parent bc1ecc6 commit 7a716aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/block/rbd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2061,7 +2061,7 @@ static struct rbd_img_request *rbd_img_request_create(
20612061
{
20622062
struct rbd_img_request *img_request;
20632063

2064-
img_request = kmem_cache_alloc(rbd_img_request_cache, GFP_ATOMIC);
2064+
img_request = kmem_cache_alloc(rbd_img_request_cache, GFP_NOIO);
20652065
if (!img_request)
20662066
return NULL;
20672067

0 commit comments

Comments
 (0)