public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* TAKE 976035 - streamline init/exit path
@ 2008-06-25  3:00 Niv Sardi
  2008-06-25 13:57 ` Christoph Hellwig
  2008-06-26 23:54 ` Dave Chinner
  0 siblings, 2 replies; 4+ messages in thread
From: Niv Sardi @ 2008-06-25  3:00 UTC (permalink / raw)
  To: melbourne, local, xfs, guys,
	"p_bugpost.bug_groups.9:sgi.bugs.xfssgi.bugs.xfs", xfs

streamline init/exit path

Currently the xfs module init/exit code is a mess.  It's farmed out
over a lot of function with very little error checking.  This patch
makes sure we propagate all initialization failures properly and clean
up after them.  Various runtime initializations are replaced with
compile-time initializations where possible to make this easier.  The
exit path is similarly consolidated.

There's now split out function to create/destroy the kmem zones and
alloc/free the trace buffers.  I've also changed the ktrace
allocations to KM_MAYFAIL and handled errors resulting from that.

And yes, we really should replace the XFS_*_TRACE ifdefs with a single
XFS_TRACE..

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Niv Sardi <xaiki@sgi.com>



Date:  Wed Jun 25 12:59:48 AEST 2008
Workarea:  itchy.melbourne.sgi.com:/home/xaiki/Wrk/git/pmod2git
Inspected by:  hch

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb


Modid:  xfs-linux-melb:xfs-kern:31354a
fs/xfs/xfs_da_btree.c - 1.182 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_da_btree.c.diff?r1=text&tr1=1.182&r2=text&tr2=1.181&f=h
fs/xfs/xfs_vfsops.c - 1.570 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_vfsops.c.diff?r1=text&tr1=1.570&r2=text&tr2=1.569&f=h
fs/xfs/xfs_mount.h - 1.272 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_mount.h.diff?r1=text&tr1=1.272&r2=text&tr2=1.271&f=h
fs/xfs/xfs_error.c - 1.63 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_error.c.diff?r1=text&tr1=1.63&r2=text&tr2=1.62&f=h
fs/xfs/xfs_error.h - 1.52 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_error.h.diff?r1=text&tr1=1.52&r2=text&tr2=1.51&f=h
fs/xfs/support/uuid.h - 1.16 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/support/uuid.h.diff?r1=text&tr1=1.16&r2=text&tr2=1.15&f=h
fs/xfs/support/uuid.c - 1.24 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/support/uuid.c.diff?r1=text&tr1=1.24&r2=text&tr2=1.23&f=h
fs/xfs/linux-2.6/xfs_stats.c - 1.26 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_stats.c.diff?r1=text&tr1=1.26&r2=text&tr2=1.25&f=h
fs/xfs/linux-2.6/xfs_stats.h - 1.18 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_stats.h.diff?r1=text&tr1=1.18&r2=text&tr2=1.17&f=h
fs/xfs/linux-2.6/xfs_super.c - 1.432 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_super.c.diff?r1=text&tr1=1.432&r2=text&tr2=1.431&f=h
fs/xfs/linux-2.6/xfs_sysctl.c - 1.46 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_sysctl.c.diff?r1=text&tr1=1.46&r2=text&tr2=1.45&f=h
fs/xfs/linux-2.6/xfs_sysctl.h - 1.31 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_sysctl.h.diff?r1=text&tr1=1.31&r2=text&tr2=1.30&f=h
fs/xfs/xfs_mru_cache.c - 1.9 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_mru_cache.c.diff?r1=text&tr1=1.9&r2=text&tr2=1.8&f=h
fs/xfs/xfs_filestream.c - 1.8 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_filestream.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.7&f=h

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

* Re: TAKE 976035 - streamline init/exit path
  2008-06-25  3:00 TAKE 976035 - streamline init/exit path Niv Sardi
@ 2008-06-25 13:57 ` Christoph Hellwig
  2008-06-26  0:56   ` Niv Sardi
  2008-06-26 23:54 ` Dave Chinner
  1 sibling, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2008-06-25 13:57 UTC (permalink / raw)
  To: Niv Sardi; +Cc: xfs

On Wed, Jun 25, 2008 at 01:00:57PM +1000, Niv Sardi wrote:
> streamline init/exit path
> 
> Currently the xfs module init/exit code is a mess.  It's farmed out
> over a lot of function with very little error checking.  This patch
> makes sure we propagate all initialization failures properly and clean
> up after them.  Various runtime initializations are replaced with
> compile-time initializations where possible to make this easier.  The
> exit path is similarly consolidated.

Umm, this has been in for a long time.  Did the mail leave your mail
queue only now? :)

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

* Re: TAKE 976035 - streamline init/exit path
  2008-06-25 13:57 ` Christoph Hellwig
@ 2008-06-26  0:56   ` Niv Sardi
  0 siblings, 0 replies; 4+ messages in thread
From: Niv Sardi @ 2008-06-26  0:56 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: xfs

Christoph Hellwig <hch@infradead.org> writes:

> On Wed, Jun 25, 2008 at 01:00:57PM +1000, Niv Sardi wrote:
>> streamline init/exit path
>> 
>> Currently the xfs module init/exit code is a mess.  It's farmed out
>> over a lot of function with very little error checking.  This patch
>> makes sure we propagate all initialization failures properly and clean
>> up after them.  Various runtime initializations are replaced with
>> compile-time initializations where possible to make this easier.  The
>> exit path is similarly consolidated.
>
> Umm, this has been in for a long time.  Did the mail leave your mail
> queue only now? :)

Nah, it got into ptools with a bogus commit message and PV and all, and
now is in master tottally broken, the plan is to let it die in master
and cherry-pick the new one in for-linus.

Sorry for the mess !

Cheers,
-- 
Niv Sardi

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

* Re: TAKE 976035 - streamline init/exit path
  2008-06-25  3:00 TAKE 976035 - streamline init/exit path Niv Sardi
  2008-06-25 13:57 ` Christoph Hellwig
@ 2008-06-26 23:54 ` Dave Chinner
  1 sibling, 0 replies; 4+ messages in thread
From: Dave Chinner @ 2008-06-26 23:54 UTC (permalink / raw)
  To: Niv Sardi; +Cc: xfs

On Wed, Jun 25, 2008 at 01:00:57PM +1000, Niv Sardi wrote:
> streamline init/exit path
> 
> Currently the xfs module init/exit code is a mess.  It's farmed out
> over a lot of function with very little error checking.  This patch
> makes sure we propagate all initialization failures properly and clean
> up after them.  Various runtime initializations are replaced with
> compile-time initializations where possible to make this easier.  The
> exit path is similarly consolidated.
> 
> There's now split out function to create/destroy the kmem zones and
> alloc/free the trace buffers.  I've also changed the ktrace
> allocations to KM_MAYFAIL and handled errors resulting from that.
> 
> And yes, we really should replace the XFS_*_TRACE ifdefs with a single
> XFS_TRACE..
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> Signed-off-by: Niv Sardi <xaiki@sgi.com>

Niv, can you now do another checkin that fixes the compilation
error when CONFIG_PROCFS=N in fs/xfs/linux-2.6/xfs_stats.h that
was reported on linux-next (i.e. fix the bug that led up to
everyone discovering the busted commit)?

BTW, your script is still busted - look at the wacky cc list
on the take message. Please be a little more careful...

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

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

end of thread, other threads:[~2008-06-26 23:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-25  3:00 TAKE 976035 - streamline init/exit path Niv Sardi
2008-06-25 13:57 ` Christoph Hellwig
2008-06-26  0:56   ` Niv Sardi
2008-06-26 23:54 ` Dave Chinner

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