* [Cluster-devel] [PATCH] gfs2: don't try to lockfs after shutdown
@ 2006-12-06 17:46 David Teigland
2006-12-08 14:31 ` [Cluster-devel] " Steven Whitehouse
0 siblings, 1 reply; 2+ messages in thread
From: David Teigland @ 2006-12-06 17:46 UTC (permalink / raw)
To: cluster-devel.redhat.com
If an fs has already been shut down, a lockfs callback should do nothing.
An fs that's been shut down can't acquire locks or do anything with
respect to the cluster.
Also, remove FIXME comment in withdraw function. The missing bits of the
withdraw procedure are now all done by user space.
Signed-off-by: David Teigland <teigland@redhat.com>
Index: linux-2.6.19-quilt/fs/gfs2/lm.c
===================================================================
--- linux-2.6.19-quilt.orig/fs/gfs2/lm.c 2006-11-29 15:57:37.000000000 -0600
+++ linux-2.6.19-quilt/fs/gfs2/lm.c 2006-12-06 11:39:17.375799158 -0600
@@ -104,15 +104,9 @@
vprintk(fmt, args);
va_end(args);
- fs_err(sdp, "about to withdraw from the cluster\n");
+ fs_err(sdp, "about to withdraw this file system\n");
BUG_ON(sdp->sd_args.ar_debug);
-
- fs_err(sdp, "waiting for outstanding I/O\n");
-
- /* FIXME: suspend dm device so oustanding bio's complete
- and all further io requests fail */
-
fs_err(sdp, "telling LM to withdraw\n");
gfs2_withdraw_lockproto(&sdp->sd_lockstruct);
fs_err(sdp, "withdrawn\n");
Index: linux-2.6.19-quilt/fs/gfs2/ops_super.c
===================================================================
--- linux-2.6.19-quilt.orig/fs/gfs2/ops_super.c 2006-11-29 15:57:37.000000000 -0600
+++ linux-2.6.19-quilt/fs/gfs2/ops_super.c 2006-12-06 11:38:12.855658211 -0600
@@ -172,6 +172,9 @@
struct gfs2_sbd *sdp = sb->s_fs_info;
int error;
+ if (test_bit(SDF_SHUTDOWN, &sdp->sd_flags))
+ return;
+
for (;;) {
error = gfs2_freeze_fs(sdp);
if (!error)
^ permalink raw reply [flat|nested] 2+ messages in thread* [Cluster-devel] Re: [PATCH] gfs2: don't try to lockfs after shutdown
2006-12-06 17:46 [Cluster-devel] [PATCH] gfs2: don't try to lockfs after shutdown David Teigland
@ 2006-12-08 14:31 ` Steven Whitehouse
0 siblings, 0 replies; 2+ messages in thread
From: Steven Whitehouse @ 2006-12-08 14:31 UTC (permalink / raw)
To: cluster-devel.redhat.com
Hi,
This has the honour of being the first patch in the new -nmw tree,
Steve.
On Wed, 2006-12-06 at 11:46 -0600, David Teigland wrote:
> If an fs has already been shut down, a lockfs callback should do nothing.
> An fs that's been shut down can't acquire locks or do anything with
> respect to the cluster.
>
> Also, remove FIXME comment in withdraw function. The missing bits of the
> withdraw procedure are now all done by user space.
>
> Signed-off-by: David Teigland <teigland@redhat.com>
>
> Index: linux-2.6.19-quilt/fs/gfs2/lm.c
> ===================================================================
> --- linux-2.6.19-quilt.orig/fs/gfs2/lm.c 2006-11-29 15:57:37.000000000 -0600
> +++ linux-2.6.19-quilt/fs/gfs2/lm.c 2006-12-06 11:39:17.375799158 -0600
> @@ -104,15 +104,9 @@
> vprintk(fmt, args);
> va_end(args);
>
> - fs_err(sdp, "about to withdraw from the cluster\n");
> + fs_err(sdp, "about to withdraw this file system\n");
> BUG_ON(sdp->sd_args.ar_debug);
>
> -
> - fs_err(sdp, "waiting for outstanding I/O\n");
> -
> - /* FIXME: suspend dm device so oustanding bio's complete
> - and all further io requests fail */
> -
> fs_err(sdp, "telling LM to withdraw\n");
> gfs2_withdraw_lockproto(&sdp->sd_lockstruct);
> fs_err(sdp, "withdrawn\n");
> Index: linux-2.6.19-quilt/fs/gfs2/ops_super.c
> ===================================================================
> --- linux-2.6.19-quilt.orig/fs/gfs2/ops_super.c 2006-11-29 15:57:37.000000000 -0600
> +++ linux-2.6.19-quilt/fs/gfs2/ops_super.c 2006-12-06 11:38:12.855658211 -0600
> @@ -172,6 +172,9 @@
> struct gfs2_sbd *sdp = sb->s_fs_info;
> int error;
>
> + if (test_bit(SDF_SHUTDOWN, &sdp->sd_flags))
> + return;
> +
> for (;;) {
> error = gfs2_freeze_fs(sdp);
> if (!error)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-08 14:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-06 17:46 [Cluster-devel] [PATCH] gfs2: don't try to lockfs after shutdown David Teigland
2006-12-08 14:31 ` [Cluster-devel] " Steven Whitehouse
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.