Whamcloud - gitweb
LU-4405 mdc: use ibits_known mask for lock match 36/8636/5
authorAlexey Lyashkov <alexey_lyashkov@xyratex.com>
Thu, 2 Jan 2014 22:03:26 +0000 (16:03 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 11 Jan 2014 03:53:05 +0000 (03:53 +0000)
commit6b557f04e55b14e11b7fce310094e71331c8b204
tree91553c3984c2c26a827d10626169511dbb551a79
parenta98d44e0439ad5b20d0d7f273b29e6ea990312f0
LU-4405 mdc: use ibits_known mask for lock match

Before revalidating a lock on the client, mask the lock bits against
the lock bits supported by the server (ibits_known), so newer clients
will find valid locks given by older server versions.

Xyratex-bug-id: MRP-1583

Signed-off-by: Patrick Farrell <paf@cray.com>
Signed-off-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Change-Id: I359b87e4bdc7b930e51538a4a854c47e87dd0520
Reviewed-on: http://review.whamcloud.com/8636
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_export.h
lustre/mdc/mdc_locks.c