[PATCH v2] ext4: fix potential deadlock in ext4_nonda_switch()

From: Theodore Ts'o
Date: Thu Sep 27 2012 - 23:32:06 EST


I've found a much simpler way of fixing this, by using
down_read_trylock(). In the very unlikely case where s_umount is
contended, we can just skip kicking the writeback thread.

- Ted