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.