All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Peterson <rpeterso@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 6/8] gfs2: instrumentation wrt log_flush stuck
Date: Fri, 5 Jun 2020 10:48:52 -0400 (EDT)	[thread overview]
Message-ID: <435435062.31970561.1591368532509.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CAHc6FU6Zo3gQCRt=rj8Xf3yyf4T8uX1vfHL9L1DJy3L90XkARQ@mail.gmail.com>

Hi Andreas,

----- Original Message -----
(snip)
> > @@ -970,7 +969,16 @@ void gfs2_log_flush(struct gfs2_sbd *sdp, struct
> > gfs2_glock *gl, u32 flags)
> >
> >         if (!(flags & GFS2_LOG_HEAD_FLUSH_NORMAL)) {
> >                 if (!sdp->sd_log_idle) {
> > +                       unsigned long start = jiffies;
> > +
> >                         for (;;) {
> > +                               if (time_after(jiffies, start + (HZ *
> > 600))) {
> 
> This should probably have some rate limiting as well, for example:

Seems unnecessary. If the log flush gets stuck, the message will be printed
once, and at most every 10 minutes.
 
>                                         start = jiffies;
> 
> I'm not sure what provides similar rate limiting in gfs2_ail1_flush.
> 
> > +                                       fs_err(sdp, "Error: In
> > gfs2_log_flush "
> > +                                              "for 10 minutes! t=%d\n",
> > +                                              current->journal_info ? 1 :
> > 0);
> 
> Please don't break the format string up like that; this makes grepping
> harder.

How do you propose I break present it without going over 80 character?
I could #define it as a constant, or put it into a separate function
that has less indentation, I suppose.
 
Bob



  reply	other threads:[~2020-06-05 14:48 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-26 13:05 [Cluster-devel] [PATCH 0/8] Misc Patch Collection Bob Peterson
2020-05-26 13:05 ` [Cluster-devel] [PATCH 1/8] gfs2: Don't ignore inode write errors during inode_go_sync Bob Peterson
2020-05-26 13:05 ` [Cluster-devel] [PATCH 2/8] gfs2: Allow lock_nolock mount to specify jid=X Bob Peterson
2020-05-26 13:05 ` [Cluster-devel] [PATCH 3/8] gfs2: add memory barriers to gfs2_glock_remove_revoke Bob Peterson
2020-05-26 13:05 ` [Cluster-devel] [PATCH 4/8] gfs2: Add new sysfs file for gfs2 status Bob Peterson
2020-05-26 13:05 ` [Cluster-devel] [PATCH 5/8] gfs2: print mapping->nrpages in glock dump for address space glocks Bob Peterson
2020-05-26 13:05 ` [Cluster-devel] [PATCH 6/8] gfs2: instrumentation wrt log_flush stuck Bob Peterson
2020-06-05 13:24   ` Andreas Gruenbacher
2020-06-05 14:48     ` Bob Peterson [this message]
2020-06-05 16:09       ` Andreas Gruenbacher
2020-06-05 16:14         ` Bob Peterson
2020-06-05 16:18           ` Andreas Gruenbacher
2020-05-26 13:05 ` [Cluster-devel] [PATCH 7/8] gfs2: Add new trace point for glock ail management Bob Peterson
2020-06-05 14:43   ` Andreas Gruenbacher
2020-05-26 13:05 ` [Cluster-devel] [PATCH 8/8] gfs2: introduce new gfs2_glock_assert_withdraw Bob Peterson
2020-06-05 14:38 ` [Cluster-devel] [PATCH 0/8] Misc Patch Collection Andreas Gruenbacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=435435062.31970561.1591368532509.JavaMail.zimbra@redhat.com \
    --to=rpeterso@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.