Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756144Ab0KSSAV (ORCPT ); Fri, 19 Nov 2010 13:00:21 -0500 Received: from mail-ey0-f174.google.com ([209.85.215.174]:47677 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754622Ab0KSSAU (ORCPT ); Fri, 19 Nov 2010 13:00:20 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=bPXnRg77ki9HRaxKy45UmBiIxQQ4a1WwscRjcd9kBQVdiWyAv9gaVm8+1NTnHRwO/+ 2wIbY1UWNLsi7hzwRi0sE9OCrWKQdOfWzEss9/Z6tlY+p4RGBz0ABBezdfQb7q43MuKE 81v9GqDTLt3Y059s4bs9JN4r2pRXEEH0gZaX8= Message-ID: <4CE6BB4A.5060606@gmail.com> Date: Fri, 19 Nov 2010 21:00:42 +0300 From: Vladislav Bolkhovitin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100527 Thunderbird/3.0.5 MIME-Version: 1.0 To: Greg KH CC: Richard Williams , Bart Van Assche , Boaz Harrosh , FUJITA Tomonori , Mike Christie , "linux-scsi@vger.kernel.org" , Dmitry Torokhov , "linux-kernel@vger.kernel.org" , James Bottomley , scst-devel , Hannes Reinecke , Andy Yan , Andrew Morton , Vu Pham , Linus Torvalds , Joel Becker Subject: Re: [Scst-devel] [PATCH 8/19]: SCST SYSFS interface implementation References: <20101112012315.GE17097@core.coreip.homeip.net> <4CDEC8D2.8080101@vlnb.net> <20101113235938.GA1827@kroah.com> <4CE1017E.4090409@panasas.com> <20101115161620.GB5981@kroah.com> <4CE16B8E.1000300@panasas.com> <8985DEAF-4227-4629-B90A-938D2BA3534E@etechsoft.com> <4CE2846C.6070501@vlnb.net> <4CE59482.3050002@gmail.com> <20101118214619.GA29097@kroah.com> In-Reply-To: <20101118214619.GA29097@kroah.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4307 Lines: 106 Greg KH, on 11/19/2010 12:46 AM wrote: > On Fri, Nov 19, 2010 at 12:02:58AM +0300, Vladislav Bolkhovitin wrote: >> Since nobody objected, Greg, could you consider to ACK SCST SYSFS >> management interface in /sys/kernel/scst_tgt/, please? Please find the >> SCST SYSFS ABI documentation file you requested below. > > No, sorry, again, you should not be using kobjects, and do not polute > the main /sys/kernel/ namespace with this. Which other namespace should we "polute" then? > Use 'struct device' please, that is what it is there for, and is what > the rest of the kernel is using. And use the rest of the > driver/bus/device infrastructure as your model will work with it just > fine. Greg, sorry, I don't understand your requirements and, because of this, we can't go ahead implementing them. Could you explain your position, please? None of the SCST objects are Linux devices. None of them has entries in /dev, none of them needs to send any events to udev and none of them sends or receives data from DMA, hence has any DMA parameters or restrictions. So, how can them fit into the driver/bus/device model you are enforcing? For instance: - struct sgv_pool (/sys/kernel/scst_tgt/sgv/) is an SG vectors cache. Isn't it a nonsense to make it device? - struct scst_acg (/sys/kernel/scst_tgt/targets///ini_groups//) is an access control group to define which initiators see which LUNs from target . Same, isn't it a nonsense to make it device? - struct scst_acn (/sys/kernel/scst_tgt/targets///ini_groups//initiators/) is an entry in the access control group to define which initiators should use group . Again, isn't it a nonsense to make it device? Etc. How could they fit in the driver/bus/device model? I guess, your confusion comes from word "device" you see in the SCST SYSFS tree and SCST supposed to work with "devices" and "dev handlers"? But those devices are not Linux devices, they are just objects to couple initiators' requests and backstorage which stores data. In other words, SCST devices are just redirection points passing incoming requests to Linux files and devices. SCST devices are the same as NFS exported directories. Do you believe, that struct device must be created for each NFS export? In the cases when we need to present SCST devices as Linux devices we use scst_local driver [1], which performs it exactly as you requesting, i.e. doing: root_device_register() bus_register() driver_register() ... > Yes, I know you said you didn't think you could use it, and that your > code was different than everyone elses, but I still do not believe it, > sorry. What can we do to make you believe it? Shall we write a document describing all SCST objects and their relationship between each other? (Although looks like you haven't read even detailed docs we already written...) Our position is based on careful study of all possible alternatives and 10+ years of Linux kernel development. SCST is being developed for 7+ years and, despite of not being mainline, has proved those years being the right way to go, not the mainline STGT which was chosen 5 years ago as the right way, but now we are considering to replace it. Sorry, but we have an impression that you are judging without seeing the full picture. Isn't it a duty of a subsystem's maintainer to see full picture before deciding if it's good or bad? We appreciate your effort reviewing SCST and willing to make all the needed actions to help you. The world of SCSI targets is pretty complex (I have been studying it for 7+ years), hence SCST is very big (20K LOC only core) and hard to understand. But is it a sufficient reason to force to convert elegant, nice and carefully thought design into something ugly, hardly usable and hardly maintainable? If we do it, that wouldn't make SCST simpler to review. Opposite, it would make it HARDER to review. Thanks, Vlad [1] Patch for scst_local you can find in http://lkml.org/lkml/2010/10/1/131) -- 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/