Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Trond Myklebust
Date: Wednesday, April 14, 2010 - 1:52 pm

On Wed, 2010-04-14 at 22:36 +0200, Arnd Bergmann wrote: 

Hi Arnd,

We still need to fix up the bits in NFS that dereference inode->i_flock.
On the client side, those are mainly the bits that deal with lock
recovery when the NFS server has rebooted or restarted.

AFAICS, there are two places in the NFSv4 client that need to be changed
to call lock_flocks(): nfs_delegation_claim_locks(), and
nfs4_reclaim_locks(). In both cases, the replacement is trivial.

For NFSv3, I think we are already safe, since AFAICS the host->h_rwsem
already provides exclusion between file locking and lock recovery
attempts. I think we should therefore be able to immediately remove the
BKL in fs/lockd/clntlock.c:reclaimer().

I'm not as sure about how sensitive the NFS server is to the switch from
BKL -> lock_flocks(). Perhaps Bruce can comment...

Cheers
  Trond

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] [RFC] block: replace BKL with global mutex, Arnd Bergmann, (Wed Apr 14, 1:36 pm)
[PATCH 2/2] [RFC] Remove BKL from fs/locks.c, Arnd Bergmann, (Wed Apr 14, 1:36 pm)
Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c, Trond Myklebust, (Wed Apr 14, 1:52 pm)
Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c, J. Bruce Fields, (Wed Apr 14, 2:04 pm)
Re: [PATCH 1/2] [RFC] block: replace BKL with global mutex, Douglas Gilbert, (Wed Apr 14, 3:48 pm)
Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c, Brad Boyer, (Wed Apr 14, 9:14 pm)
Re: [PATCH 1/2] [RFC] block: replace BKL with global mutex, Arnd Bergmann, (Thu Apr 15, 12:11 am)
Re: [PATCH 1/2] [RFC] block: replace BKL with global mutex, Douglas Gilbert, (Thu Apr 15, 6:15 am)
Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c, Steven Whitehouse, (Thu Apr 15, 7:48 am)
Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c, Arnd Bergmann, (Thu Apr 15, 8:17 am)
Re: [PATCH 2/2] [RFC] Remove BKL from fs/locks.c, Arnd Bergmann, (Thu Apr 15, 1:36 pm)
[PATCH] scsi/st: remove BKL from open, Arnd Bergmann, (Thu Apr 15, 1:51 pm)
Re: [PATCH] scsi/st: remove BKL from open, Frederic Weisbecker, (Thu Apr 29, 7:18 pm)