Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932385AbVJGMGR (ORCPT ); Fri, 7 Oct 2005 08:06:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932378AbVJGMGR (ORCPT ); Fri, 7 Oct 2005 08:06:17 -0400 Received: from rutherford.zen.co.uk ([212.23.3.142]:42388 "EHLO rutherford.zen.co.uk") by vger.kernel.org with ESMTP id S932111AbVJGMGQ (ORCPT ); Fri, 7 Oct 2005 08:06:16 -0400 Message-ID: <43466453.9070604@dresco.co.uk> Date: Fri, 07 Oct 2005 13:04:35 +0100 From: Jon Escombe User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jens Axboe CC: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, hdaps-devel@lists.sourceforge.net Subject: Re: [RFC] Hard disk protection revisited References: <4345B24A.2080104@dresco.co.uk> <20051007100219.GU2889@suse.de> In-Reply-To: <20051007100219.GU2889@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Hops: 1 X-Originating-Rutherford-IP: [82.68.23.174] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1578 Lines: 40 Jens Axboe wrote: >I have to nack this one for now, I still want the generic command types >patch to go in first. We have far too many queue hooks already, adding >two more for a relatively obscure use such as this one is not a good >idea. > >My suggestion is to maintain this patch out of tree for now, it will be >a few kernel release iterations before the command type patch is in. > > That's a fair comment (and not entirely unexpected), I don't have a problem with looking after this out of tree for now... One issue with the generic command approach occured to me while making this patch - although it's more likely an issue with my understanding ;) I'm assuming that it would work like this -- the block layer still has the sysfs attribute, and queues the new command for the lower driver to pick up. The driver receives the command and does it's custom park/freeze work, then calls a common block layer function to setup the timer (all good so far). Where it gets hazy (for me) is how the block layer starts the queue up again - as this ended up needing to be driver specific & I can't see how the block layer would get another command down if the queue is stopped? Regards, Jon. ______________________________________________________________ Email via Mailtraq4Free from Enstar (www.mailtraqdirect.co.uk) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/