]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: trylock in ocfs2_readpage()
authorMark Fasheh <mark.fasheh@oracle.com>
Mon, 14 May 2007 18:38:51 +0000 (11:38 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Fri, 25 May 2007 18:00:23 +0000 (11:00 -0700)
commitc0f8e0046eac08386eba5662adb013d621fa107a
treed42beb9d6b2c54bc205e48bc75cdf26ec0eeddc3
parent146b73ebf6e429fe2f9488c9b8da911e3d6154f8
ocfs2: trylock in ocfs2_readpage()

Similarly to the page lock / cluster lock inversion in ocfs2_readpage, we
can deadlock on ip_alloc_sem. We can down_read_trylock() instead and just
return AOP_TRUNCATED_PAGE if the operation fails.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/aops.c