diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index 196060dc6138..148533c993f1 100644 --- a/net/9p/trans_fd.c +++ b/net/9p/trans_fd.c @@ -687,7 +687,11 @@ static int p9_fd_request(struct p9_client *client, struct p9_req_t *req) else n = p9_fd_poll(m->client, NULL, NULL); - if (n & EPOLLOUT && !test_and_set_bit(Wworksched, &m->wsched)) + /* Request was not sent */ + if (!(n & EPOLLOUT)) + return -EIO; + + if (!test_and_set_bit(Wworksched, &m->wsched)) schedule_work(&m->wq); return 0;