diff options
author | Simon Derr <simon.derr@bull.net> | 2013-06-21 09:32:35 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2013-07-07 23:02:27 -0400 |
commit | 17b6fd9d6dfa0faed3a25a6045f7456821ea140a (patch) | |
tree | d79a639870cc879f930f984ecd2151cc2f8ad2e4 /net | |
parent | ea071aa1365eaf8a79b33bd8699cb0811dcddf34 (diff) |
9P/RDMA: rdma_request() needs not allocate req->rc
p9_tag_alloc() takes care of that.
Signed-off-by: Simon Derr <simon.derr@bull.net>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/9p/trans_rdma.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/net/9p/trans_rdma.c b/net/9p/trans_rdma.c index 2c69ddd691a1..b1dfdf2078ff 100644 --- a/net/9p/trans_rdma.c +++ b/net/9p/trans_rdma.c | |||
@@ -427,26 +427,7 @@ static int rdma_request(struct p9_client *client, struct p9_req_t *req) | |||
427 | err = -ENOMEM; | 427 | err = -ENOMEM; |
428 | goto err_close; | 428 | goto err_close; |
429 | } | 429 | } |
430 | |||
431 | /* | ||
432 | * If the request has a buffer, steal it, otherwise | ||
433 | * allocate a new one. Typically, requests should already | ||
434 | * have receive buffers allocated and just swap them around | ||
435 | */ | ||
436 | if (!req->rc) { | ||
437 | req->rc = kmalloc(sizeof(struct p9_fcall)+client->msize, | ||
438 | GFP_NOFS); | ||
439 | if (req->rc) { | ||
440 | req->rc->sdata = (char *) req->rc + | ||
441 | sizeof(struct p9_fcall); | ||
442 | req->rc->capacity = client->msize; | ||
443 | } | ||
444 | } | ||
445 | rpl_context->rc = req->rc; | 430 | rpl_context->rc = req->rc; |
446 | if (!rpl_context->rc) { | ||
447 | err = -ENOMEM; | ||
448 | goto err_free2; | ||
449 | } | ||
450 | 431 | ||
451 | /* | 432 | /* |
452 | * Post a receive buffer for this request. We need to ensure | 433 | * Post a receive buffer for this request. We need to ensure |