cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH] [GFS2] bz253089 Make gfs2_writepage use trylock on the log_flush lock
@ 2007-09-13 16:30 Benjamin Marzinski
  2007-09-13 16:36 ` Benjamin Marzinski
  0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Marzinski @ 2007-09-13 16:30 UTC (permalink / raw)
  To: cluster-devel.redhat.com

gfs2 was deadlocking because most code paths acquire the sd_log_flush_lock and
then the page locks, while code paths going through gfs2_writepage acquire the
page locks and then the log flush lock.

This patch makes gfs2_writepage do a trylock on the sd_log_flush_lock. If it
fails, writepage simply redirtys the page and gives up. This should keep the
deadlock from happening, however it might cause a performance hit.

Signed-off-by: Benjamin E. Marzinski <bmarzins@redhat.com>



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

end of thread, other threads:[~2007-09-14 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-13 16:30 [Cluster-devel] [PATCH] [GFS2] bz253089 Make gfs2_writepage use trylock on the log_flush lock Benjamin Marzinski
2007-09-13 16:36 ` Benjamin Marzinski
2007-09-14 16:50   ` Steven Whitehouse

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).