public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Don't release root inode until finished using it
@ 2008-08-05  6:33 Lachlan McIlroy
  2008-08-05  7:38 ` Dave Chinner
  2008-08-06  0:01 ` Christoph Hellwig
  0 siblings, 2 replies; 4+ messages in thread
From: Lachlan McIlroy @ 2008-08-05  6:33 UTC (permalink / raw)
  To: xfs, xfs-dev

During unmount we're releasing the last reference on the root inode
before we've finished using it so move it after the XFS_SEND_UNMOUNT
hook.

--- a/fs/xfs/linux-2.6/xfs_super.c	2008-08-05 13:12:39.000000000 +1000
+++ b/fs/xfs/linux-2.6/xfs_super.c	2008-08-04 14:34:56.000000000 +1000
@@ -1132,8 +1132,6 @@ xfs_fs_put_super(
 	error = xfs_unmount_flush(mp, 0);
 	WARN_ON(error);
 
-	IRELE(rip);
-
 	/*
 	 * If we're forcing a shutdown, typically because of a media error,
 	 * we want to make sure we invalidate dirty pages that belong to
@@ -1149,6 +1147,8 @@ xfs_fs_put_super(
 				unmount_event_flags);
 	}
 
+	IRELE(rip);
+
 	xfs_unmountfs(mp);
 	xfs_icsb_destroy_counters(mp);
 	xfs_close_devices(mp);

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

* Re: [PATCH] Don't release root inode until finished using it
  2008-08-05  6:33 [PATCH] Don't release root inode until finished using it Lachlan McIlroy
@ 2008-08-05  7:38 ` Dave Chinner
  2008-08-06  0:01 ` Christoph Hellwig
  1 sibling, 0 replies; 4+ messages in thread
From: Dave Chinner @ 2008-08-05  7:38 UTC (permalink / raw)
  To: Lachlan McIlroy; +Cc: xfs, xfs-dev

On Tue, Aug 05, 2008 at 04:33:24PM +1000, Lachlan McIlroy wrote:
> During unmount we're releasing the last reference on the root inode
> before we've finished using it so move it after the XFS_SEND_UNMOUNT
> hook.

Looks ok.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

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

* Re: [PATCH] Don't release root inode until finished using it
  2008-08-05  6:33 [PATCH] Don't release root inode until finished using it Lachlan McIlroy
  2008-08-05  7:38 ` Dave Chinner
@ 2008-08-06  0:01 ` Christoph Hellwig
  2008-08-06  2:32   ` Lachlan McIlroy
  1 sibling, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2008-08-06  0:01 UTC (permalink / raw)
  To: Lachlan McIlroy; +Cc: xfs, xfs-dev

Looks good, but I've already sent a nicer version on the 26th:

[PATCH 1/6] move root inode IRELE into xfs_unmountfs


Sometimes I wish people would at least glance over my patches when they
hit the list..

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

* Re: [PATCH] Don't release root inode until finished using it
  2008-08-06  0:01 ` Christoph Hellwig
@ 2008-08-06  2:32   ` Lachlan McIlroy
  0 siblings, 0 replies; 4+ messages in thread
From: Lachlan McIlroy @ 2008-08-06  2:32 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: xfs, xfs-dev

Christoph Hellwig wrote:
> Looks good, but I've already sent a nicer version on the 26th:
> 
> [PATCH 1/6] move root inode IRELE into xfs_unmountfs
> 
> 
> Sometimes I wish people would at least glance over my patches when they
> hit the list..

Some of us are trying to fix bugs and don't have time to look at every
cleanup patch that hits the list.

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

end of thread, other threads:[~2008-08-06  2:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-05  6:33 [PATCH] Don't release root inode until finished using it Lachlan McIlroy
2008-08-05  7:38 ` Dave Chinner
2008-08-06  0:01 ` Christoph Hellwig
2008-08-06  2:32   ` Lachlan McIlroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox