qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 01/12] nbd: rename read_sync and friends


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [Qemu-devel] [PATCH 01/12] nbd: rename read_sync and friends
Date: Fri, 2 Jun 2017 17:18:47 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

02.06.2017 17:15, Eric Blake wrote:
On 06/02/2017 08:54 AM, Vladimir Sementsov-Ogievskiy wrote:
Finally, are you OK with my wording? If I reroll, can I add your r-b?
What final wording are you proposing (full paragraph, not a snippet)?
2. _sync suffix
    _sync is related to the fact that nbd_wr_syncv doesn't return if
s/if/if a/

    write to socket returns EAGAIN. In first implementation nbd_wr_syncv
s/In first implementation/The first implementation of/

    (was wr_sync in 7a5ca8648b) just loops while getting EAGAIN, current
s/current/the current/

    implementation yields in this case.
    Why to get rid of it:
maybe: s/Why/Why we want/

    - it is normal for r/w functions to be synchronous, so having
s/having/having an/

      additional suffix for it looks redundant (contrariwise, we have
      _aio suffix for async functions)
    - _sync suffix in block layer is used when function does flush (so
      using it for other thing is confusing a bit)
    - keep function names short after adding nbd_ prefix
Thanks for bearing with me, and letting me help on the grammar subtleties.

No problem, thank you too)


Reviewed-by: Eric Blake <address@hidden>
At any rate, I already gave R-b for the code, so finessing the commit
message doesn't change that if the code remains unchanged.


--
Best regards,
Vladimir




reply via email to

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