qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 06/16] nbd: do not block on partial reply header


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 06/16] nbd: do not block on partial reply header reads
Date: Mon, 16 Jan 2017 14:31:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1


On 16/01/2017 13:52, Fam Zheng wrote:
> +    /* Kick the read_reply_co to get the next reply.  */
> +    aio_co_wake(s->read_reply_co);
> 
> Can't s->read_reply_co be NULL? nbd_read_reply_entry unsets it. (Surprisingly
> this file is rather unfamiliar to me, it's possible I'm missing something.)

Yes, that can happen depending on how the coroutines are scheduled when
the server goes down.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]