1 Mar 2004 01:14
Re: fatfs locking
Marcus Brinkmann <marcus.brinkmann <at> ruhr-uni-bochum.de>
2004-03-01 00:14:59 GMT
2004-03-01 00:14:59 GMT
At 29 Feb 2004 15:47:32 -0800, Thomas Bushnell, BSG wrote: > > Marcus Brinkmann <marcus.brinkmann <at> ruhr-uni-bochum.de> writes: > > > So, this is the main issue, and I don't feel that you have addressed > > it at all. > > Ok, thanks for your patience. I don't mind adding an argument, > provided the caller always knows exactly which case is being invoked, > to tell diskfs_cached_lookup whether the lock is already held or not. > That is, I'm comfortable provided the caller always knows whether the > node is locked. Yes. The original idea was to provide the node pointer if the directory is locked, and NULL otherwise. > In other words, it should be described that the arg means "the caller > already has the node locked", and not that the arg means "don't lock > the node when you get it." > > I believe this is entirely consistent with what you have suggested; > just please be sure to document it in such a way, so as not to imply > that it's ever legitimate to omit the locking. Yes, I think that is exactly what is required. Now, hopefully you won't fall off the chair when you see how many interfaces are affected in the case of fatfs write support (as opposed to read support) ;) Anyway, you are making Marco very happy.(Continue reading)
RSS Feed