]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: finish lock waiters in the same order that they were added. 8965/head
authorYan, Zheng <zyan@redhat.com>
Fri, 6 May 2016 11:07:07 +0000 (19:07 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 1 Jun 2016 13:00:15 +0000 (21:00 +0800)
commitd463107473382170c07d9250bb7ace0e5a2a7de2
treeb16722e3d59528053108287fd36b8e1f0e1c9e5f
parent2ab0707f57f98d28c1e2c1491a656ba116fe543f
mds: finish lock waiters in the same order that they were added.

Current code first processes lock waiters who have smaller wait mask.
Lock waiters who have large wait mask can starve if client keeps
sending requests that add waiter with small mask.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/MDSRank.cc
src/mds/SimpleLock.h
src/mds/mdstypes.cc
src/mds/mdstypes.h