Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6918075ybi; Mon, 8 Jul 2019 10:50:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxewV+gFrG8RF3RD+9qkU6NBsc1gRueqhf//8LEjTf3fMqZy0CHp2RXxRr5GjXkWMFSrkez X-Received: by 2002:a17:902:9b94:: with SMTP id y20mr26554357plp.260.1562608254520; Mon, 08 Jul 2019 10:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562608254; cv=none; d=google.com; s=arc-20160816; b=LHDMDKkXrSlTfFp4bhqv5RieJez9MOayH+mjeTrKgapK1HfpcVdLRHIh499YrySY+S qt3DJ6lkrJ3KdhdjtGO2hwuI4H3Z1iI0f7qu7i/APmcGOUFkcuyphcpzOypBaw5R7BAM fIwqXNrLvOrf1X+jI3rwvvOxN/jf17gSy3J1OJyxiIelpuBfKmFmgrLwE0ZFOshc8COb xMuaSQOrAlL6MvI4CgsHWXVcWw2G+DsK1TnI1eiy4jF9Y864V0r2ynL6MQPN4G1C4y0+ GblpRcsAltt03tC4DNstF5BmvmHvMA4SUn0SuZA5SHM5+lxAjHxRiffuvTruDJcQ17WS qtNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:reply-to; bh=hqdf+pClqtcMCJGa6SGj9tyKaHH+VEcse314ig5wZAQ=; b=BD08KK7er5HffwWJWLGAAVOmjVV0Ty2ctDwgnc0C4r0VSAuADeTzUSe4T9vIPhwnTH D7rTPOT6aSebF6DzbDmpsCOQdAFt1e+ZjZZnHWVTofXN0Gdujk0kp8Ssu9rJ0U2jfONH 0IclVjYCjfc1+S1SOT2sM+ubEFI7mtQvhPUrBzVHXhWjcUFvmX7xNZ6+LCmpeYlb74kN pb7HlqyxzmgpAC2c/+Kg4kBK9VFc+1Rk8e9j01t0RxHCxZpRfrmFFhHNEv9Ldf0ytab+ Xwp5xURKvQGeDqRxLHP35ZBthCulb6V4Mf06cxX8VqVCqJRGeEdnV8LPZHOQAddnOwO2 iVig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si18682362plk.225.2019.07.08.10.50.39; Mon, 08 Jul 2019 10:50:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729025AbfGHNCk (ORCPT + 99 others); Mon, 8 Jul 2019 09:02:40 -0400 Received: from smtp.infotech.no ([82.134.31.41]:49530 "EHLO smtp.infotech.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728242AbfGHNCk (ORCPT ); Mon, 8 Jul 2019 09:02:40 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp.infotech.no (Postfix) with ESMTP id B2ADC20423F; Mon, 8 Jul 2019 15:02:37 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.6 (20110518) (Debian) at infotech.no Received: from smtp.infotech.no ([127.0.0.1]) by localhost (smtp.infotech.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7Hwv6m74jWwG; Mon, 8 Jul 2019 15:02:28 +0200 (CEST) Received: from [192.168.48.23] (host-23-251-188-50.dyn.295.ca [23.251.188.50]) by smtp.infotech.no (Postfix) with ESMTPA id C280620416A; Mon, 8 Jul 2019 15:02:26 +0200 (CEST) Reply-To: dgilbert@interlog.com Subject: Re: [PATCH v1] scsi: Don't select SCSI_PROC_FS by default To: Hannes Reinecke , "Elliott, Robert (Servers)" , Bart Van Assche , Marc Gonzalez , James Bottomley , Martin Petersen Cc: SCSI , LKML , Christoph Hellwig References: <2de15293-b9be-4d41-bc67-a69417f27f7a@free.fr> <621306ee-7ab6-9cd2-e934-94b3d6d731fc@acm.org> <1ad3e7ba-008d-31ad-89a0-b118b36e14e2@suse.de> <284c3ecc-b3a8-eeec-92d5-5eda1f20f691@suse.de> From: Douglas Gilbert Message-ID: <5155c7bd-f339-33bb-1a84-18ea75963db2@interlog.com> Date: Mon, 8 Jul 2019 09:02:23 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <284c3ecc-b3a8-eeec-92d5-5eda1f20f691@suse.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-CA Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-07-08 2:01 a.m., Hannes Reinecke wrote: > On 7/5/19 7:53 PM, Douglas Gilbert wrote: >> On 2019-07-05 3:22 a.m., Hannes Reinecke wrote: > [ .. ] >>> As mentioned, rescan-scsi-bus.sh is keeping references to /proc/scsi as >>> a fall back only, as it's meant to work kernel independent. Per default >>> it'll be using /sys, and will happily work without /proc/scsi. >>> >>> So it's really only /proc/scsi/sg which carries some meaningful >>> information; maybe we should move/copy it to somewhere else. >>> >>> I personally like getting rid of /proc/scsi. >> >> /proc/scsi/device_info doesn't seem to be in sysfs. >> >> Could the contents of /proc/scsi/sg/* be placed in >> /sys/class/scsi_generic/* ? Currently that directory only has symlinks >> to the sg devices. >> > The sg parameters are already available in /sys/module/sg/parameters; > so from that perspective I feel we're good. # ls /sys/module/sg/parameters/ allow_dio def_reserved_size scatter_elem_sz # ls /proc/scsi/sg/ allow_dio debug def_reserved_size device_hdr devices device_strs red_debug version So that doesn't work, what are in 'parameters' are passed in at module/driver initialization. Back to my original question: Could the contents of /proc/scsi/sg/* be placed in /sys/class/scsi_generic/* ? > Problem is /proc/scsi/device_info, for which we currently don't have any > other location to store it at. > Hmm. Doug Gilbert