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>
This commit is contained in:
parent
bc1ecc65a2
commit
7a716aac01
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue