From: Zheng Liu Subject: Re: [PATCH 0/2] ext4: deadlocks after allocation failure in ext4_init_io_end() Date: Tue, 14 May 2013 15:06:28 +0800 Message-ID: <20130514070627.GA3025@gmail.com> References: <1368472093-16997-1-git-send-email-khoroshilov@ispras.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Theodore Ts'o , Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, spruce-project@linuxtesting.org To: Alexey Khoroshilov , Jan Kara Return-path: Content-Disposition: inline In-Reply-To: <1368472093-16997-1-git-send-email-khoroshilov@ispras.ru> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org On Mon, May 13, 2013 at 11:08:11PM +0400, Alexey Khoroshilov wrote: > Hi, Ted! > > Our tests for ext4 with targeted fault injection were stalled in Uninterruptible Sleep State > when they simulate a memory allocation failure in ext4_init_io_end() while it is called from > mpage_da_submit_io() or ext4_writepage(). > > It looks like the problems are that pages left locked after failure handling. > > I am not completely sure that my patches take into account all required aspects, > but the tests are passed if the patches are applied. > > Please find below syslog excerpt for the first issue. > > Found by Linux File System Verification project (linuxtesting.org/spruce). Hi Alexey, Thanks for fixing this. The patch series looks good to me. But the commit (ext4: use io_end for multiple bios) has been reverted in dev branch of ext4 tree. I forward the mail to Jan to let him know your fixes. Regards, - Zheng