Re: [PATCH] 9p: fix EBADF errors in cached mode
From: Dominique Martinet
Date: Thu Jun 16 2022 - 16:54:27 EST
Christian Schoenebeck wrote on Thu, Jun 16, 2022 at 10:14:16PM +0200:
> I tested all 3 variants today, and they were all behaving correctly (no EBADF
> errors anymore, no other side effects observed).
Thanks!
> The minimalistic version (i.e. your initial suggestion) performed 20% slower
> in my tests, but that could be due to the fact that it was simply the 1st
> version I tested, so caching on host side might be the reason. If necessary I
> can check the performance aspect more thoroughly.
hmm, yeah we open the writeback fids anyway so I'm not sure what would
be really different performance-wise, but I'd tend to go with the most
restricted change anyway.
> Personally I would at least use the NETFS_READ_FOR_WRITE version, but that's
> up to you. On doubt, clarify with David's plans.
>
> Feel free to add my RB and TB tags to any of the 3 version(s) you end up
> queuing:
>
> Reviewed-by: Christian Schoenebeck <linux_oss@xxxxxxxxxxxxx>
> Tested-by: Christian Schoenebeck <linux_oss@xxxxxxxxxxxxx>
Thanks, I'll add these and resend the last version for archival on the
list / commit message wording check.
At last that issue closed...
--
Dominique