cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Abhijith Das <adas@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH] gfs2-utils: Fix hang on withdraw
Date: Tue, 4 Aug 2015 10:40:25 -0400 (EDT)	[thread overview]
Message-ID: <818309273.3962661.1438699225790.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <55C09CA8.5090904@redhat.com>



----- Original Message -----
> From: "Andrew Price" <anprice@redhat.com>
> To: "Abhijith Das" <adas@redhat.com>, "cluster-devel" <cluster-devel@redhat.com>
> Sent: Tuesday, August 4, 2015 6:06:16 AM
> Subject: Re: [Cluster-devel] [GFS2 PATCH] gfs2-utils: Fix hang on withdraw
> 
> Hi Abhi,
> 
> On 03/08/15 20:30, Abhijith Das wrote:
> > Issuing a withdraw on a gfs2 filesystem causes a hang. When
> > gfs_controld was removed, the userspace functionality that
> > completes a withdraw operation went away. This causes gfs2
> > kernel to hang waiting for a withdraw completion ack from
> > userspace.
> >
> > This patchset introduces a uevent-based shell script to do
> > the job that gfs_controld used to do on withdraw. An 'offline'
> > uevent triggers the execution of this script. This script
> > suspends the device associated with the filesystem and signals
> > a completed withdraw to the kernel.
> >
> > Resolves: rhbz#1225634
> > Signed-off-by: Abhi Das <adas@redhat.com>
> > ---
> >   gfs2/scripts/82-gfs2-withdraw.rules |  2 ++
> >   gfs2/scripts/gfs2_wd_udev.sh        | 30 ++++++++++++++++++++++++++++++
> >   2 files changed, 32 insertions(+)
> >   create mode 100644 gfs2/scripts/82-gfs2-withdraw.rules
> >   create mode 100755 gfs2/scripts/gfs2_wd_udev.sh
> 
> Even if they're not getting installed in 'make install' the build system
> will need to know about them, in gfs2/scripts/Makefile.am:
> 
> noinst_SCRIPTS = \
> 	82-gfs2-withdraw.rules \
> 	gfs2_wd_udev.sh
> 
> I think some documentation in README.build would be useful too, so that
> package maintainers know why and where to install them.
> 
> > diff --git a/gfs2/scripts/82-gfs2-withdraw.rules
> > b/gfs2/scripts/82-gfs2-withdraw.rules
> > new file mode 100644
> > index 0000000..c1ab02b
> > --- /dev/null
> > +++ b/gfs2/scripts/82-gfs2-withdraw.rules
> > @@ -0,0 +1,2 @@
> > +SUBSYSTEM=="gfs2", ACTION=="offline", RUN+="/bin/sh /sbin/gfs2_wd_udev.sh"
> 
> Perhaps that should be /usr/sbin instead of /sbin, after the whole
> "UsrMove" thing.
> 

Ok, Thanks! I'll make these changes and re-post.

Cheers!
--Abhi



      reply	other threads:[~2015-08-04 14:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03 19:30 [Cluster-devel] [GFS2 PATCH] gfs2-utils: Fix hang on withdraw Abhijith Das
2015-08-04 11:06 ` Andrew Price
2015-08-04 14:40   ` Abhijith Das [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=818309273.3962661.1438699225790.JavaMail.zimbra@redhat.com \
    --to=adas@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).