mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 21:33:40 +08:00
9pfs: drop pdu_push_and_notify()
Only pdu_complete() needs to notify the client that a request has completed. Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
parent
57a0aa6b50
commit
a17d8659c4
@ -65,11 +65,6 @@ ssize_t pdu_unmarshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void pdu_push_and_notify(V9fsPDU *pdu)
|
||||
{
|
||||
pdu->s->transport->push_and_notify(pdu);
|
||||
}
|
||||
|
||||
static int omode_to_uflags(int8_t mode)
|
||||
{
|
||||
int ret = 0;
|
||||
@ -668,7 +663,7 @@ static void coroutine_fn pdu_complete(V9fsPDU *pdu, ssize_t len)
|
||||
pdu->size = len;
|
||||
pdu->id = id;
|
||||
|
||||
pdu_push_and_notify(pdu);
|
||||
pdu->s->transport->push_and_notify(pdu);
|
||||
|
||||
/* Now wakeup anybody waiting in flush for this request */
|
||||
if (!qemu_co_queue_next(&pdu->complete)) {
|
||||
|
Loading…
Reference in New Issue
Block a user