From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755703Ab1IMQqa (ORCPT ); Tue, 13 Sep 2011 12:46:30 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:60492 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755571Ab1IMQq2 convert rfc822-to-8bit (ORCPT ); Tue, 13 Sep 2011 12:46:28 -0400 MIME-Version: 1.0 In-Reply-To: <20110913124906.GA17855@infradead.org> References: <22A973199D2C2F46933448F6E7990A3002C80026@ntxboimbx31.micron.com> <4E44E782.7090309@fusionio.com> <2A9BE4FF6209B644B6F8EB62DE6AEA1E07663ED4@ntxfrembx01.micron.com> <20110909085433.GA9593@infradead.org> <20110913124906.GA17855@infradead.org> From: Eric Seppanen Date: Tue, 13 Sep 2011 09:46:07 -0700 Message-ID: Subject: Re: [PATCH v4] drivers/block/mtip32xx: Adding new driver mtip32xx To: Christoph Hellwig Cc: "Sam Bradshaw (sbradshaw)" , jaxboe@fusionio.com, alan@lxorguk.ukuu.org.uk, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Jeff Garzik , jmoyer@redhat.com, "Asai Thambi Samymuthu Pattrayasamy (asamymuthupa) [CONTRACTOR]" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 13, 2011 at 5:49 AM, Christoph Hellwig wrote: > Btw, there is another _huge_ issue with the driver, and that is the > lack of any internal queueing.  Remember the make_request interface is > an extremly thin layer (or rather the lack of it) below the filesystem. > > So for example if eh_active is non-zero you return -EBUSY to the > filesystems.  That's an error code it a) doesn't recognize and b) > couldn't handle even if it did.  Similarly mtip_hw_get_scatterlist > simply blocks if no tag is currently available instead of queueing > it up. Just out of curiosity, why is blocking on no-tag-available a bad thing? How is it any different than the blocking that will occur when a request queue is full? When the hardware queue depth is bigger than that of a request queue, what extra benefit does queuing give?