Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760548AbXEQSrz (ORCPT ); Thu, 17 May 2007 14:47:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756713AbXEQSro (ORCPT ); Thu, 17 May 2007 14:47:44 -0400 Received: from wr-out-0506.google.com ([64.233.184.228]:20730 "EHLO wr-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753949AbXEQSrm (ORCPT ); Thu, 17 May 2007 14:47:42 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QZuE3jxZdnsMCJGnwyFXBaPdAogyr3+ckbjTuviN9F2PXD6zO8x2YQX9CQtV2pjZHF0PMsTpoP7OaEgPtydN9Vnz8H1YSPLQQXN03uuDlcg/Q8jOka3Y099opPSxyCelTp33+oa3Y/mHBRcYs2NhPF7mKd6uQFtzGKwmwL905vA= Message-ID: Date: Fri, 18 May 2007 00:17:40 +0530 From: "Satyam Sharma" To: "Christoph Hellwig" , "Benjamin LaHaise" , "Matthew Wilcox" , "Simon Arlott" , "James Bottomley" , "Dave Jones" , "Linux Kernel Mailing List" , linux-scsi@vger.kernel.org, kernel-packagers@vger.kernel.org, "Robert P. J. Day" Subject: Re: Asynchronous scsi scanning In-Reply-To: <20070517182414.GA12170@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070515120228.GI10562@parisc-linux.org> <4649E03A.1090004@simon.arlott.org.uk> <20070515172905.GJ10562@parisc-linux.org> <20070516025121.GK10562@parisc-linux.org> <20070517172023.GL10562@parisc-linux.org> <20070517182414.GA12170@infradead.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1567 Lines: 33 Hi Christoph, On 5/17/07, Christoph Hellwig wrote: > On Thu, May 17, 2007 at 11:11:10PM +0530, Satyam Sharma wrote: > > Another command to /proc/scsi/scsi isn't a bad thought at all, considering > > Yes it is. /proc/scsi/scsi is a horrible interface and deprecated since > the start of the 2.6 series. What I have in mind is actually this: We implement commands to trigger the scsi_complete_async_scans() using *both* the (legacy, agreed) /proc/scsi/scsi interface _and_ using a sysfs attribute for this (either in /sys/module/scsi_mod/parameter/, using a module_param_call as Roland suggested, or, create a new /sys/module/scsi_mod//wait_..., whatever is appropriate). /proc/scsi/scsi is now deprecated _because_ the sysfs alternative became available, after all (we couldn't pull functionality / interfaces previously exposed to userspace from under them without giving equivalent alternatives anyway). However, Ben does have a point that we shouldn't force those using SCSI (and wishing to use the new async scanning feature) to depend on and use sysfs too, so those like him could use /proc/scsi/scsi. The idea is that with time sysfs gets its act together and thus becomes standard enough on all Linux boxen (much like /proc is today), and those like Ben could later switch to that. - 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/