Files
linux/fs
Trond Myklebust 5eb54e3800 NFSv4: fix delegated locking
commit 0df5dd4aae upstream.

Arnaud Giersch reports that NFSv4 locking is broken when we hold a
delegation since commit 8e469ebd6d (NFSv4:
Don't allow posix locking against servers that don't support it).

According to Arnaud, the lock succeeds the first time he opens the file
(since we cannot do a delegated open) but then fails after we start using
delegated opens.

The following patch fixes it by ensuring that locking behaviour is
governed by a per-filesystem capability flag that is initially set, but
gets cleared if the server ever returns an OPEN without the
NFS4_OPEN_RESULT_LOCKTYPE_POSIX flag being set.

Reported-by: Arnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-04-26 07:41:25 -07:00
..
2010-02-09 04:50:46 -08:00
2010-02-09 04:50:48 -08:00
2010-02-23 07:37:55 -08:00
2010-02-09 04:50:46 -08:00
2009-10-04 15:05:10 -07:00
2009-09-30 12:19:44 -05:00
2010-02-23 07:37:58 -08:00
2009-12-18 14:04:08 -08:00
2009-09-23 18:13:10 -07:00
2010-04-26 07:41:25 -07:00
2009-09-23 07:39:30 -07:00
2009-09-24 08:41:47 -04:00
2010-02-09 04:50:47 -08:00
2009-09-24 08:41:47 -04:00
2010-04-26 07:41:19 -07:00
2009-09-24 07:21:03 -07:00
2010-02-23 07:37:44 -08:00
2009-09-24 07:47:27 -04:00
2009-10-22 08:11:44 +09:00
2009-10-04 15:05:10 -07:00
2009-09-23 07:39:29 -07:00