public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* protecting per-ag access in the sync path
@ 2009-11-24 17:04 Christoph Hellwig
  2009-11-25  0:05 ` Dave Chinner
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2009-11-24 17:04 UTC (permalink / raw)
  To: david; +Cc: xfs

Since Linux 2.6.29 we use the perag structures a lot in the sync path,
but we're not actually protecting against the re-allocation in growfs.

I've recently received a new, fast SSD which allows me to hit those
races.  With it 104 reproducibly crashes the system, hitting the slab
redzoning for the old per-ag structure.  I experimentally put
synchronization using m_peraglock into xfs_inode_ag_walk which fixes the
issue at the cost of lock order reversals between the i_lock and the
m_peraglock in various places.

Any better idea how to protect the new sync path against growfs?

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2009-11-25  0:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-24 17:04 protecting per-ag access in the sync path Christoph Hellwig
2009-11-25  0:05 ` Dave Chinner

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