All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ceph: fix long stalls on sync/syncfs
@ 2020-04-02 11:29 Jeff Layton
  2020-04-02 11:29 ` [PATCH v2 1/2] ceph: convert mdsc->cap_dirty to a per-session list Jeff Layton
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Jeff Layton @ 2020-04-02 11:29 UTC (permalink / raw)
  To: ceph-devel; +Cc: ukernel, idryomov, sage, jfajerski, lhenriques, gfarnum

This is v2 of the patch I sent the other day to fix the problem of long
stalls when calling sync or syncfs.

This set converts the mdsc->cap_dirty list to a per-session list, and
then has the only caller that looks at cap_dirty walk the list of
sessions and issue flushes for each session in turn.

With this, we can use an empty s_cap_dirty list as an indicator that the
cap flush is the last one going to the session and can mark that one as
one we're waiting on so the MDS can expedite it.

This also attempts to clarify some of the locking around s_cap_dirty,
and adds a FIXME comment to raise the question about locking around
s_cap_flushing.

Jeff Layton (2):
  ceph: convert mdsc->cap_dirty to a per-session list
  ceph: request expedited service on session's last cap flush

 fs/ceph/caps.c       | 72 +++++++++++++++++++++++++++++++++++++++-----
 fs/ceph/mds_client.c |  2 +-
 fs/ceph/mds_client.h |  5 +--
 fs/ceph/super.h      | 21 +++++++++++--
 4 files changed, 87 insertions(+), 13 deletions(-)

-- 
2.25.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-04-03 10:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-02 11:29 [PATCH v2 0/2] ceph: fix long stalls on sync/syncfs Jeff Layton
2020-04-02 11:29 ` [PATCH v2 1/2] ceph: convert mdsc->cap_dirty to a per-session list Jeff Layton
2020-04-03  3:21   ` Yan, Zheng
2020-04-03 10:45     ` Jeff Layton
2020-04-02 11:29 ` [PATCH v2 2/2] ceph: request expedited service on session's last cap flush Jeff Layton
2020-04-03  3:22   ` Yan, Zheng
2020-04-03 10:23   ` Luis Henriques
2020-04-03 10:37     ` Jeff Layton
2020-04-02 15:54 ` [PATCH v2 0/2] ceph: fix long stalls on sync/syncfs Gregory Farnum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.