Whamcloud - gitweb
LU-7802 ldlm: No -EINVAL for canceled != unused 60/28560/4
authorPatrick Farrell <paf@cray.com>
Mon, 18 Sep 2017 11:05:48 +0000 (06:05 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 22 Sep 2017 06:19:29 +0000 (06:19 +0000)
commita5081b7362e44b8d38aee1112f9a7d3aae1642c0
treef66696a20ab02e347bf2d2b0aaaa18dbf0adb982
parent5084c376cb20554e1e89351042361dce4133f8fa
LU-7802 ldlm: No -EINVAL for canceled != unused

If any locks are removed from or added to the lru, the
check of "number unused vs number cancelled" may be wrong.
This is fine - do not return an error or print debug in
this case.

Signed-off-by: Patrick Farrell <paf@cray.com>
Change-Id: I2ee9b8d86fbd6c9bd2c29e3472e3d410ee303374
Reviewed-on: https://review.whamcloud.com/28560
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ldlm/ldlm_resource.c