Jeff Layton fa82a49127 nfsd: only set file_lock.fl_lmops in nfsd4_lockt if a stateowner is found
nfsd4_lockt does a search for a lockstateowner when building the lock
struct to test. If one is found, it'll set fl_owner to it. Regardless of
whether that happens, it'll also set fl_lmops. Given that this lock is
basically a "lightweight" lock that's just used for checking conflicts,
setting fl_lmops is probably not appropriate for it.

This behavior exposed a bug in DLM's GETLK implementation where it
wasn't clearing out the fields in the file_lock before filling in
conflicting lock info. While we were able to fix this in DLM, it
still seems pointless and dangerous to set the fl_lmops this way
when we may have a NULL lockstateowner.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@pig.fieldses.org>
2009-01-27 17:26:59 -05:00
..
2009-01-27 17:26:59 -05:00
2008-02-01 16:42:05 -05:00
2009-01-22 13:16:00 +03:00
2008-10-03 16:19:02 -04:00
2007-05-09 12:30:54 -07:00
2008-06-23 13:02:50 -04:00
2008-06-23 13:02:50 -04:00
2008-02-14 21:17:08 -08:00
2008-04-23 16:13:39 -04:00
2009-01-07 17:32:45 -05:00
2008-02-14 21:17:08 -08:00