On Wednesday 27 October 2010, Christoph Hellwig wrote:
That sounds like a good way to get rid of a lot of special cases, too.
It comes back to the original problem with Bruce's patch though:
fcntl_setlease wants to atomically add a lease or fail. If
fasync_helper fails, we want to remove the lease that was
just added before anyone can see it. At the very least we need
to keep the flock from getting freed in another thread while
we call fasync_helper without the lock.
locks_delete_lock is also called with lock_flocks held and calls
fasync_helper...
Arnd
--