[Ocfs2-devel] [PATCH 5/6] ocfs2: Avoid blocking in ocfs2_mark_lockres_freeing() in downconvert thread

Mark Fasheh mfasheh at suse.de
Tue Feb 25 11:12:57 PST 2014


On Fri, Feb 21, 2014 at 10:45:03AM +0100, Jan Kara wrote:
> If we are dropping last inode reference from downconvert thread, we will
> end up calling ocfs2_mark_lockres_freeing() which can block if the lock
> we are freeing is queued thus creating an A-A deadlock. Luckily, since
> we are the downconvert thread, we can immediately dequeue the lock and
> thus avoid waiting in this case.
> 
> Signed-off-by: Jan Kara <jack at suse.cz>

Latest version of this looks good, thanks Jan!

Reviewed-by: Mark Fasheh <mfasheh at suse.de>
	--Mark

--
Mark Fasheh



More information about the Ocfs2-devel mailing list