Re: [PATCH 2/2] 9p: read only once on O_NONBLOCK

From: Dominique Martinet
Date: Wed Feb 05 2020 - 02:42:03 EST


Sergey Alirzaev wrote on Wed, Feb 05, 2020:
> A proper way to handle O_NONBLOCK would be making the requests and
> responses happen asynchronously, but this would require serious code
> refactoring.

FWIW I do have some async 9p code waiting (it's been sent to the list
ages ago but I never took the time to properly test it due to lack of
interest manifested), the problem here is more the caching model than a
synchronous issue, since in nocache mode (where this is used) there is
nowhere to fetch the data ahead of time.

If you're interested in that then please have a look at
https://lore.kernel.org/lkml/1544532108-21689-1-git-send-email-asmadeus@xxxxxxxxxxxxx/

> Signed-off-by: Sergey Alirzaev <l29ah@xxxxxxx>

That aside, I guess, why not?
Will take when other patch gets addressed.

Thanks,
--
Dominique