]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: only set MClientCaps::FLAG_SYNC when flushing dirty auth caps 34997/head
authorJeff Layton <jlayton@redhat.com>
Mon, 6 Apr 2020 16:26:30 +0000 (12:26 -0400)
committerNathan Cutler <ncutler@suse.com>
Mon, 11 May 2020 16:05:40 +0000 (18:05 +0200)
commit5c74fad0e21365d7e3468bc9b7c7a9cbd12e910d
treeb7dc699773e39292a811043db499fdca5cf26fb3
parentd92ab7040fa49c5434e8fc44968f7395521b27ca
client: only set MClientCaps::FLAG_SYNC when flushing dirty auth caps

Sidharth noticed that we were probably doing more FLAG_SYNC cap flushes
than necessary.

This flag is intended for sync/fsync type activity, and in those cases
all we care about is cleaning dirty caps. We have no need to expedite
other types of cap calls (releases, revokes, etc.).

Fixes: https://tracker.ceph.com/issues/44963
Reported-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit 63e4ee0e9fe3654dcd680e7e8271870fbd295215)
src/client/Client.cc