Skip to content

Commit 1c915b3

Browse files
committed
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
2 parents d3436a1 + 2224d87 commit 1c915b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/block/rbd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ static struct ceph_osd_request *rbd_osd_req_create(
19531953

19541954
osdc = &rbd_dev->rbd_client->client->osdc;
19551955
osd_req = ceph_osdc_alloc_request(osdc, snapc, num_ops, false,
1956-
GFP_ATOMIC);
1956+
GFP_NOIO);
19571957
if (!osd_req)
19581958
return NULL; /* ENOMEM */
19591959

@@ -2002,7 +2002,7 @@ rbd_osd_req_create_copyup(struct rbd_obj_request *obj_request)
20022002
rbd_dev = img_request->rbd_dev;
20032003
osdc = &rbd_dev->rbd_client->client->osdc;
20042004
osd_req = ceph_osdc_alloc_request(osdc, snapc, num_osd_ops,
2005-
false, GFP_ATOMIC);
2005+
false, GFP_NOIO);
20062006
if (!osd_req)
20072007
return NULL; /* ENOMEM */
20082008

@@ -2504,7 +2504,7 @@ static int rbd_img_request_fill(struct rbd_img_request *img_request,
25042504
bio_chain_clone_range(&bio_list,
25052505
&bio_offset,
25062506
clone_size,
2507-
GFP_ATOMIC);
2507+
GFP_NOIO);
25082508
if (!obj_request->bio_list)
25092509
goto out_unwind;
25102510
} else if (type == OBJ_REQUEST_PAGES) {

0 commit comments

Comments
 (0)