static void p9_free_req(struct p9_client *c, struct p9_req_t *r) { int tag = r->tc->tag; P9_DPRINTK(P9_DEBUG_MUX, "clnt %p req %p tag: %d\n", c, r, tag); r->status = REQ_STATUS_IDLE; if (tag != P9_NOTAG && p9_idpool_check(tag, c->tagpool)) p9_idpool_put(tag, c->tagpool); }
static void p9_free_req(struct p9_client *c, struct p9_req_t *r) { int tag = r->tc->tag; P9_DPRINTK(P9_DEBUG_MUX, "clnt %p req %p tag: %d\n", c, r, tag); r->status = REQ_STATUS_IDLE; if (tag != P9_NOTAG && p9_idpool_check(tag, c->tagpool)) p9_idpool_put(tag, c->tagpool); /* if this was a flush request we have to free response fcall */ if (r->rc->id == P9_RFLUSH) { kfree(r->tc); kfree(r->rc); } }