Skip to content
Snippets Groups Projects
Commit e9dfc0b2 authored by Mark Fasheh's avatar Mark Fasheh
Browse files

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: default avatarMark Fasheh <mark.fasheh@oracle.com>
parent 1c1ee4c3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment