[prev in list] [next in list] [prev in thread] [next in thread] 

List:       v9fs-developer
Subject:    Re: [V9fs-developer] Regarding fixups for setattr/getattr issues with open files
From:       Greg Kurz <groug () kaod ! org>
Date:       2018-03-16 18:36:28
Message-ID: 20180316193628.0db1af70 () bahia ! lan
[Download RAW message or body]

On Fri, 16 Mar 2018 18:09:19 +0100
Eduard Shishkin <eduard.shishkin@huawei.com> wrote:

[...]
> >> However, we need to serialize
> >> "writers" (->release()) and "readers" (->getattr(), ->open(), etc)
> >> issued for the same inode and using fids found in the inode's ilist.
> >>  
> >
> > Ha ha! And so, with proper serialization, no more ENOENT ?  
> 
> Yup, they disappear :)
> I tested with v_mutex, but I guess it should be a separate rw-semaphore

Yeah, probably better to leave v_mutex for writeback_fid only.

> (not spinlock, as I afraid we can sleep on net/9p/client operations
> such as p9_client_clunk(), etc).

Agreed.

> 
> Thanks,
> Edward.
> 

Cheers,

--
Greg

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
V9fs-developer mailing list
V9fs-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/v9fs-developer
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic