From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: linux-next: Tree for July 16 (crash on quad core AMD) Date: Sat, 19 Jul 2008 09:59:11 +0900 Message-ID: <48813C5F.70007@gmail.com> References: <20080716235011.ac9643aa.sfr@canb.auug.org.au> <200807170053.36661.rjw@sisk.pl> <1216249292.3358.66.camel@localhost.localdomain> <200807170109.30655.rjw@sisk.pl> <48808EE0.2060603@gmail.com> <20080719004736.626ef169@mjolnir.drzeus.cx> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=UKl63vfhaHc6fDIsuGwRIuFn3SdkRoDOiLnmuINeIK0=; b=aCWDmTL9cWGEaR7XUYv3EwdN4BMP7gqdWynhw0i0hMKXeH9Ql75PWAaYjSx24TDozz vm4sVHmM8mI+WEbJu6J3ljPbdPyN0Ed6LldD0qurvLP2NeOWs7jljkdXKhUOdZy5KNJo P8UNeYzO2xHKhAcQa7oK9te5O/dKVEp1kBQdM= In-Reply-To: <20080719004736.626ef169@mjolnir.drzeus.cx> Sender: linux-next-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Pierre Ossman Cc: "Rafael J. Wysocki" , James Bottomley , Stephen Rothwell , linux-next@vger.kernel.org, LKML , Andrew Morton , Kernel Testers List , scsi , Jens Axboe , linux-ide , Jeff Garzik , Takashi Iwai , tino.keitel@gmx.de Pierre Ossman wrote: > I just have one objection to your version, and that is that it cannot > be used to nibble away at the sg list. The _next() call jumps an entire > page, whereas you sometimes need to consume that page in two different > sweeps. This could be handled by some external buffer that keeps the > remainder of the page, but the point of these functions was to keep > things simple for the callers. Well, I don't know how often such usages would be necessary. If it's a very common ops, you can add a param to the next function but frankly I think it's better to build a inside control structure for that. There's no need for external buffer, just an inner loop is sufficient. -- tejun