Re: nfsd changes for 2.6.37

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arnd Bergmann
Date: Wednesday, October 27, 2010 - 8:23 am

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
nfsd changes for 2.6.37, J. Bruce Fields, (Tue Oct 26, 9:45 am)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Tue Oct 26, 10:22 am)
Re: nfsd changes for 2.6.37, Linus Torvalds, (Tue Oct 26, 10:39 am)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Tue Oct 26, 10:46 am)
Re: nfsd changes for 2.6.37, Arnd Bergmann, (Tue Oct 26, 1:18 pm)
Re: nfsd changes for 2.6.37, Bryan Schumaker, (Tue Oct 26, 1:35 pm)
Re: nfsd changes for 2.6.37, Arnd Bergmann, (Tue Oct 26, 1:55 pm)
Re: nfsd changes for 2.6.37, Linus Torvalds, (Tue Oct 26, 2:02 pm)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Tue Oct 26, 2:24 pm)
Re: nfsd changes for 2.6.37, Linus Torvalds, (Tue Oct 26, 2:37 pm)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Tue Oct 26, 2:44 pm)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Tue Oct 26, 3:11 pm)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Tue Oct 26, 3:41 pm)
Re: nfsd changes for 2.6.37, Arnd Bergmann, (Wed Oct 27, 12:21 am)
Re: nfsd changes for 2.6.37, Christoph Hellwig, (Wed Oct 27, 1:39 am)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Wed Oct 27, 6:39 am)
Re: nfsd changes for 2.6.37, Arnd Bergmann, (Wed Oct 27, 6:46 am)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Wed Oct 27, 7:55 am)
Re: nfsd changes for 2.6.37, Christoph Hellwig, (Wed Oct 27, 7:59 am)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Wed Oct 27, 8:16 am)
Re: nfsd changes for 2.6.37, Christoph Hellwig, (Wed Oct 27, 8:19 am)
Re: nfsd changes for 2.6.37, Arnd Bergmann, (Wed Oct 27, 8:23 am)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Wed Oct 27, 8:28 am)
Re: nfsd changes for 2.6.37, Christoph Hellwig, (Wed Oct 27, 8:31 am)
Re: nfsd changes for 2.6.37, Linus Torvalds, (Wed Oct 27, 9:12 am)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Wed Oct 27, 9:46 am)
Re: nfsd changes for 2.6.37, Linus Torvalds, (Wed Oct 27, 10:32 am)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Wed Oct 27, 10:40 am)
Re: nfsd changes for 2.6.37, Arnd Bergmann, (Wed Oct 27, 11:20 am)
Re: nfsd changes for 2.6.37, Linus Torvalds, (Wed Oct 27, 11:42 am)
Re: nfsd changes for 2.6.37, Linus Torvalds, (Wed Oct 27, 11:43 am)
Re: nfsd changes for 2.6.37, Arnd Bergmann, (Wed Oct 27, 12:48 pm)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Wed Oct 27, 1:01 pm)
Re: nfsd changes for 2.6.37, Arnd Bergmann, (Wed Oct 27, 1:20 pm)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Wed Oct 27, 1:24 pm)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Sat Oct 30, 2:25 pm)
[PATCH 1/4] locks: prevent ENOMEM on lease unlock, J. Bruce Fields, (Sat Oct 30, 2:31 pm)
[PATCH 2/4] locks: fix leaks on setlease errors, J. Bruce Fields, (Sat Oct 30, 2:31 pm)
[PATCH 4/4] nfsd4: initialize delegation pointer to lease, J. Bruce Fields, (Sat Oct 30, 2:31 pm)
Re: nfsd changes for 2.6.37, Arnd Bergmann, (Sat Oct 30, 2:40 pm)
Re: [PATCH 4/4] nfsd4: initialize delegation pointer to lease, Christoph Hellwig, (Sat Oct 30, 7:04 pm)
Re: nfsd changes for 2.6.37, Christoph Hellwig, (Sat Oct 30, 7:07 pm)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Sat Oct 30, 8:05 pm)
Re: [PATCH 2/4] locks: fix leaks on setlease errors, Christoph Hellwig, (Sun Oct 31, 4:10 am)
Re: nfsd changes for 2.6.37, Christoph Hellwig, (Sun Oct 31, 5:34 am)
[PATCH 2/2] locks: remove fl_copy_lock lock_manager operation, Christoph Hellwig, (Sun Oct 31, 5:35 am)
Re: nfsd changes for 2.6.37, J. Bruce Fields, (Mon Nov 1, 8:02 am)
Re: [PATCH 2/4] locks: fix leaks on setlease errors, J. Bruce Fields, (Mon Nov 1, 10:24 am)
Re: [PATCH 2/4] locks: fix leaks on setlease errors, Christoph Hellwig, (Mon Nov 1, 10:41 am)
Re: [PATCH 2/4] locks: fix leaks on setlease errors, J. Bruce Fields, (Mon Nov 1, 11:34 am)
Re: nfsd changes for 2.6.37, Christoph Hellwig, (Sat Nov 6, 12:04 pm)