diff options
Diffstat (limited to 'net/9p/client.c')
-rw-r--r-- | net/9p/client.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/net/9p/client.c b/net/9p/client.c index ce26da95f63f..40e558172bbe 100644 --- a/net/9p/client.c +++ b/net/9p/client.c | |||
@@ -663,16 +663,13 @@ static int p9_client_flush(struct p9_client *c, struct p9_req_t *oldreq) | |||
663 | if (IS_ERR(req)) | 663 | if (IS_ERR(req)) |
664 | return PTR_ERR(req); | 664 | return PTR_ERR(req); |
665 | 665 | ||
666 | |||
667 | /* | 666 | /* |
668 | * if we haven't received a response for oldreq, | 667 | * if we haven't received a response for oldreq, |
669 | * remove it from the list | 668 | * remove it from the list |
670 | */ | 669 | */ |
671 | if (oldreq->status == REQ_STATUS_FLSH) { | 670 | if (oldreq->status == REQ_STATUS_FLSH) |
672 | spin_lock(&c->lock); | 671 | if (c->trans_mod->cancelled) |
673 | list_del(&oldreq->req_list); | 672 | c->trans_mod->cancelled(c, oldreq); |
674 | spin_unlock(&c->lock); | ||
675 | } | ||
676 | 673 | ||
677 | p9_free_req(c, req); | 674 | p9_free_req(c, req); |
678 | return 0; | 675 | return 0; |