From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Marzinski Date: Thu, 13 Sep 2007 11:30:37 -0500 Subject: [Cluster-devel] [PATCH] [GFS2] bz253089 Make gfs2_writepage use trylock on the log_flush lock Message-ID: <20070913163037.GB5841@ether.msp.redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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