diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-04-07 19:34:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-04-07 19:34:26 -0400 |
commit | 1c915b3ac4ecf6ff67573eed24458d862e842cb6 (patch) | |
tree | 78d62528d884465b530b418ec3644d208db638a4 | |
parent | d3436a1d03f9a416d8bedd968f16296e0140adcb (diff) | |
parent | 2224d879c7c0f85c14183ef82eb48bd875ceb599 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
Pull Ceph fix from Sage Weil:
"This just fixes a few remaining memory allocations in RBD to use
GFP_NOIO instead of GFP_ATOMIC"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client:
rbd: use GFP_NOIO consistently for request allocations
-rw-r--r-- | drivers/block/rbd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 9c6234428607..94a1843b0426 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c | |||
@@ -1953,7 +1953,7 @@ static struct ceph_osd_request *rbd_osd_req_create( | |||
1953 | 1953 | ||
1954 | osdc = &rbd_dev->rbd_client->client->osdc; | 1954 | osdc = &rbd_dev->rbd_client->client->osdc; |
1955 | osd_req = ceph_osdc_alloc_request(osdc, snapc, num_ops, false, | 1955 | osd_req = ceph_osdc_alloc_request(osdc, snapc, num_ops, false, |
1956 | GFP_ATOMIC); | 1956 | GFP_NOIO); |
1957 | if (!osd_req) | 1957 | if (!osd_req) |
1958 | return NULL; /* ENOMEM */ | 1958 | return NULL; /* ENOMEM */ |
1959 | 1959 | ||
@@ -2002,7 +2002,7 @@ rbd_osd_req_create_copyup(struct rbd_obj_request *obj_request) | |||
2002 | rbd_dev = img_request->rbd_dev; | 2002 | rbd_dev = img_request->rbd_dev; |
2003 | osdc = &rbd_dev->rbd_client->client->osdc; | 2003 | osdc = &rbd_dev->rbd_client->client->osdc; |
2004 | osd_req = ceph_osdc_alloc_request(osdc, snapc, num_osd_ops, | 2004 | osd_req = ceph_osdc_alloc_request(osdc, snapc, num_osd_ops, |
2005 | false, GFP_ATOMIC); | 2005 | false, GFP_NOIO); |
2006 | if (!osd_req) | 2006 | if (!osd_req) |
2007 | return NULL; /* ENOMEM */ | 2007 | return NULL; /* ENOMEM */ |
2008 | 2008 | ||
@@ -2504,7 +2504,7 @@ static int rbd_img_request_fill(struct rbd_img_request *img_request, | |||
2504 | bio_chain_clone_range(&bio_list, | 2504 | bio_chain_clone_range(&bio_list, |
2505 | &bio_offset, | 2505 | &bio_offset, |
2506 | clone_size, | 2506 | clone_size, |
2507 | GFP_ATOMIC); | 2507 | GFP_NOIO); |
2508 | if (!obj_request->bio_list) | 2508 | if (!obj_request->bio_list) |
2509 | goto out_unwind; | 2509 | goto out_unwind; |
2510 | } else if (type == OBJ_REQUEST_PAGES) { | 2510 | } else if (type == OBJ_REQUEST_PAGES) { |