]> 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. 9560/head
authorYan, Zheng <zyan@redhat.com>
Fri, 6 May 2016 11:07:07 +0000 (19:07 +0800)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Tue, 7 Jun 2016 14:40:07 +0000 (20:10 +0530)
commiteea0e916640c3ac2d69ffb9c335dde6332b03938
treeafcabdcf6a621b3a0dc99046722eb4510e638f02
parentb1c4c4c456d1d20ccc91de4f762dbe46d8e339a3
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>
(cherry picked from commit d463107473382170c07d9250bb7ace0e5a2a7de2)
src/mds/MDSRank.cc
src/mds/SimpleLock.h
src/mds/mdstypes.cc
src/mds/mdstypes.h