[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20070228121643.GX3733@kernel.dk>
Date: Wed, 28 Feb 2007 13:16:43 +0100
From: Jens Axboe <jens.axboe@...cle.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>,
Linux Kernel ML <linux-kernel@...r.kernel.org>
Subject: Re: Fix soft lockup with iSeries viocd driver
On Wed, Feb 28 2007, Tony Breeds wrote:
> On Tue, Feb 27, 2007 at 03:33:34PM +0100, Jens Axboe wrote:
>
> > It looks ok (better than end_request()), though it would still be nice
> > to properly end requests. See the recent thread on the lguest block
> > driver.
>
> Hi Jens,
> I read through the lguest thread and came up with the patch
> below, I hope I understood correctly. We still need to do the check to
> make sure we ask for at least one sector to be processed in
> end_that_request_first(), as the request that triggers the lockup here
> (an sg_io ioctl in this case), has both req->hard_nr_sectors and
> req->hard_cur_sectors = 0.
Yep that looks better.
> From: Tony Breeds <tony@...eyournoodle.com>
>
> Fix soft lockup with iSeries viocd driver, caused by eventually calling
> end_that_request_first() with nr_bytes 0.
>
> The lockup is triggered by hald, interrogating the device.
>
> Signed-off-by: Tony Breeds <tony@...eyournoodle.com>
Signed-off-by: Jens Axboe <jens.axboe@...cle.com>
--
Jens Axboe
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists