diff options
Diffstat (limited to 'net/9p/trans_rdma.c')
-rw-r--r-- | net/9p/trans_rdma.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/9p/trans_rdma.c b/net/9p/trans_rdma.c index 17c5ba7551a5..150e0c4bbf40 100644 --- a/net/9p/trans_rdma.c +++ b/net/9p/trans_rdma.c | |||
@@ -59,7 +59,6 @@ | |||
59 | * safely advertise a maxsize | 59 | * safely advertise a maxsize |
60 | * of 64k */ | 60 | * of 64k */ |
61 | 61 | ||
62 | #define P9_RDMA_MAX_SGE (P9_RDMA_MAXSIZE >> PAGE_SHIFT) | ||
63 | /** | 62 | /** |
64 | * struct p9_trans_rdma - RDMA transport instance | 63 | * struct p9_trans_rdma - RDMA transport instance |
65 | * | 64 | * |
@@ -425,7 +424,7 @@ static int rdma_request(struct p9_client *client, struct p9_req_t *req) | |||
425 | struct p9_rdma_context *rpl_context = NULL; | 424 | struct p9_rdma_context *rpl_context = NULL; |
426 | 425 | ||
427 | /* Allocate an fcall for the reply */ | 426 | /* Allocate an fcall for the reply */ |
428 | rpl_context = kmalloc(sizeof *rpl_context, GFP_KERNEL); | 427 | rpl_context = kmalloc(sizeof *rpl_context, GFP_NOFS); |
429 | if (!rpl_context) { | 428 | if (!rpl_context) { |
430 | err = -ENOMEM; | 429 | err = -ENOMEM; |
431 | goto err_close; | 430 | goto err_close; |
@@ -438,7 +437,7 @@ static int rdma_request(struct p9_client *client, struct p9_req_t *req) | |||
438 | */ | 437 | */ |
439 | if (!req->rc) { | 438 | if (!req->rc) { |
440 | req->rc = kmalloc(sizeof(struct p9_fcall)+client->msize, | 439 | req->rc = kmalloc(sizeof(struct p9_fcall)+client->msize, |
441 | GFP_KERNEL); | 440 | GFP_NOFS); |
442 | if (req->rc) { | 441 | if (req->rc) { |
443 | req->rc->sdata = (char *) req->rc + | 442 | req->rc->sdata = (char *) req->rc + |
444 | sizeof(struct p9_fcall); | 443 | sizeof(struct p9_fcall); |
@@ -469,7 +468,7 @@ static int rdma_request(struct p9_client *client, struct p9_req_t *req) | |||
469 | req->rc = NULL; | 468 | req->rc = NULL; |
470 | 469 | ||
471 | /* Post the request */ | 470 | /* Post the request */ |
472 | c = kmalloc(sizeof *c, GFP_KERNEL); | 471 | c = kmalloc(sizeof *c, GFP_NOFS); |
473 | if (!c) { | 472 | if (!c) { |
474 | err = -ENOMEM; | 473 | err = -ENOMEM; |
475 | goto err_free1; | 474 | goto err_free1; |