On Wed, Jul 16, 2014 at 03:04:01PM -0400, Jeff Layton wrote: > Hmm...maybe. It's a very unlikely race though, and I think the same > sort of race exists today. In fact, it's worse today since we don't do > any checking of the validity of the lease after acquiring it now. > > The flag sounds like a good idea, but the code is structured completely > wrong for it currently. The delegation is only hashed after we get a > lease, so the lease break wouldn't find anything to set a flag on. > > Quite frankly, I _really_ do not want to have to rework the locking in > the delegation code yet again. I think this scheme is an improvement > over what we have now, even if it's not 100% perfect. > > Once we get the scalability set done, I'd like to go back and overhaul > the delegation code. There are a lot of ugly warts here, but fixing > them is really a separate project in its own right. But in the old code we had the client lock over all of this, right? Anyway, if Bruce and you are fine with this I'm not going to block it, although it seems a little incomplete to me. -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html