From: Mark Fasheh Date: Tue, 25 Feb 2014 11:12:57 -0800 Subject: [Ocfs2-devel] [PATCH 5/6] ocfs2: Avoid blocking in ocfs2_mark_lockres_freeing() in downconvert thread In-Reply-To: <1392975904-16944-6-git-send-email-jack@suse.cz> References: <1392975904-16944-1-git-send-email-jack@suse.cz> <1392975904-16944-6-git-send-email-jack@suse.cz> Message-ID: <20140225191257.GJ5716@wotan.suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ocfs2-devel@oss.oracle.com 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 Latest version of this looks good, thanks Jan! Reviewed-by: Mark Fasheh --Mark -- Mark Fasheh