diff options
| author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-08-05 03:25:54 -0400 |
|---|---|---|
| committer | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-08-07 08:00:52 -0400 |
| commit | 7a716aac01eedb8a7ebf36a0e81237c56f9f1bc1 (patch) | |
| tree | 372bce9818d6de669b70e754161576d27a1d6428 | |
| parent | bc1ecc65a259fa9333dc8bd6a4ba0cf03b7d4bf8 (diff) | |
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>
| -rw-r--r-- | drivers/block/rbd.c | 2 |
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( | |||
| 2061 | { | 2061 | { |
| 2062 | struct rbd_img_request *img_request; | 2062 | struct rbd_img_request *img_request; |
| 2063 | 2063 | ||
| 2064 | img_request = kmem_cache_alloc(rbd_img_request_cache, GFP_ATOMIC); | 2064 | img_request = kmem_cache_alloc(rbd_img_request_cache, GFP_NOIO); |
| 2065 | if (!img_request) | 2065 | if (!img_request) |
| 2066 | return NULL; | 2066 | return NULL; |
| 2067 | 2067 | ||
