[PATCH 2/6] mds: revoke GSHARED cap when finishing xlock

2013-08-04 Thread Yan, Zheng
From: "Yan, Zheng" If lock state is LOCK_XLOCKDONE, the xlocker can have GSHARED cap. So when finishing xlock, we may need to revoke the GSHARED cap. In most cases Locker::_finish_xlock() directly set lock state to LOCK_LOCK or LOCK_EXCL, which hides the issue. If 'num_rdlock > 0' or 'num_wrlock

[PATCH 2/6] mds: revoke GSHARED cap when finishing xlock

2013-07-17 Thread Yan, Zheng
From: "Yan, Zheng" If lock state is LOCK_XLOCKDONE, the xlocker can have GSHARED cap. So when finishing xlock, we may need to revoke the GSHARED cap. In most cases Locker::_finish_xlock() directly set lock state to LOCK_LOCK or LOCK_EXCL, which hides the issue. If 'num_rdlock > 0' or 'num_wrlock