All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Peterson <rpeterso@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH] GFS2: Change recovery to use mutex instead of spin_lock
Date: Wed, 26 Apr 2017 16:28:40 -0400 (EDT)	[thread overview]
Message-ID: <1613629309.1468188.1493238520377.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <b5d9c6b9-9cfa-189d-27c5-6149969ace3e@redhat.com>

----- Original Message -----
| If this is a spin lock, then it should not be covering anything that
| blocks. Looking down lock_dlm.c, I don't see anything that obviously is
| going to take a long time, so I wonder what is the real problem here? Is
| there something under the spinlock taking a long time, or is one of the
| bits of code it protects being called a very large number of times?
| 
| Mostly it seems to be covering the recovery state, and that shouldn't
| take very long to update, particularly compared with longer running
| operations such as journal recovery, so I think we need to look a bit
| harder at what is going on here,
| 
| Steve.

Based on your email, I studied how the spin_lock was used.
It turns out that it's not called that often, but there are some places
where recovery functions take the spin_lock then call queue_delayed_work,
which can block on its own spin_lock.

In my case, I've got 60 GFS2 mount points, and 16 cpus, and therefore
60 of everything. So maybe that's a better thing to address here.
I'll see if I can rework it to queue the work after the spin_lock is
released without harm.

Regards,

Bob Peterson
Red Hat File Systems



      reply	other threads:[~2017-04-26 20:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <2144052809.17222072.1492627907851.JavaMail.zimbra@redhat.com>
2017-04-19 18:52 ` [Cluster-devel] [GFS2 PATCH] GFS2: Change recovery to use mutex instead of spin_lock Bob Peterson
2017-04-26 16:15   ` Steven Whitehouse
2017-04-26 20:28     ` Bob Peterson [this message]

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=1613629309.1468188.1493238520377.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.