From: Marc Gonzalez <marc.w.gonzalez@free.fr>
To: Douglas Gilbert <dgilbert@interlog.com>
Cc: Finn Thain <fthain@telegraphics.com.au>,
Bart Van Assche <bvanassche@acm.org>,
James Bottomley <jejb@linux.ibm.com>,
Martin Petersen <martin.petersen@oracle.com>,
SCSI <linux-scsi@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH v1] scsi: Don't select SCSI_PROC_FS by default
Date: Thu, 20 Jun 2019 11:01:39 +0200 [thread overview]
Message-ID: <e04e14b7-e1ee-c0c1-9e6d-2628d2c873a9@free.fr> (raw)
In-Reply-To: <48912bc0-8c79-408d-7ed2-c127b99b8bcc@interlog.com>
On 19/06/2019 16:34, Douglas Gilbert wrote:
> On 2019-06-19 5:42 a.m., Marc Gonzalez wrote:
>
>> I assume sg3_utils requires CHR_DEV_SG. Is it the case?
>>
>> If so, we would just need to enable SCSI_PROC_FS when CHR_DEV_SG is enabled.
>>
>> diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
>> index 73bce9b6d037..642ca0e7d363 100644
>> --- a/drivers/scsi/Kconfig
>> +++ b/drivers/scsi/Kconfig
>> @@ -54,14 +54,12 @@ config SCSI_NETLINK
>> config SCSI_PROC_FS
>> bool "legacy /proc/scsi/ support"
>> depends on SCSI && PROC_FS
>> - default y
>> + default CHR_DEV_SG
>> ---help---
>> This option enables support for the various files in
>> /proc/scsi. In Linux 2.6 this has been superseded by
>> files in sysfs but many legacy applications rely on this.
>>
>> - If unsure say Y.
>> -
>> comment "SCSI support type (disk, tape, CD-ROM)"
>> depends on SCSI
>>
>>
>> Would that work for you?
>> I checked that SCSI_PROC_FS=y whether CHR_DEV_SG=y or m
>> I can spin a v2, with a blurb about how sg3_utils relies on SCSI_PROC_FS.
>
> Yes, but (see below) ...
>
> Example of use of /proc/scsi/scsi [...]
> Now looking at /proc/scsi/device_info [...]
>
> IMO unless there is a replacement for /proc/scsi/device_info
> then your patch should not go ahead . If it does, any reasonable
> distro should override it.
>
> That is a black (or quirks) list that can be added to by writing an
> entry to /proc/scsi/device_info . So if a user has a device that needs
> one of those quirks defined to stop their system locking up when a
> device of that type is plugged in, and the distro or some app (say,
> that needs that device) knows about that, then it would be sad if
> /proc/scsi/device_info was missing due to the changed default that is
> being proposed.
You've made it clear that SCSI_PROC_FS is important for several classes
of hardware.
You worry that changing the Kconfig default would force distro maintainers
(we are talking about Debian/Redhat/Suse/etc right?) to actually turn the
feature on, instead of relying on the "default y" behavior (as they have
done in the past).
How likely is it that distro kernels would *not* enable CHR_DEV_SG?
(Distros tend to enable everything, and then some.)
CHR_DEV_SG is enabled in the default configs for i386 and x86_64:
$ git grep CHR_DEV_SG arch/x86/configs/
arch/x86/configs/i386_defconfig:CONFIG_CHR_DEV_SG=y
arch/x86/configs/x86_64_defconfig:CONFIG_CHR_DEV_SG=y
=> As soon as CHR_DEV_SG is enabled, SCSI_PROC_FS is also enabled.
(I work on smaller systems where we do use /proc occasionally, but we
don't enable CHR_DEV_SG or SCSI_PROC_FS.)
I think we just need to find a reasonable condition for enabling
SCSI_PROC_FS by default on "your" sytems, and not on "mine" ;-)
Regards.
next prev parent reply other threads:[~2019-06-20 9:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-12 13:59 [PATCH v1] scsi: Don't select SCSI_PROC_FS by default Marc Gonzalez
2019-06-17 21:11 ` Bart Van Assche
2019-06-18 0:35 ` Douglas Gilbert
2019-06-18 1:08 ` Finn Thain
2019-06-18 7:29 ` Marc Gonzalez
2019-06-18 15:31 ` Douglas Gilbert
2019-06-19 9:42 ` Marc Gonzalez
2019-06-19 14:34 ` Douglas Gilbert
2019-06-20 9:01 ` Marc Gonzalez [this message]
2019-06-20 21:47 ` Martin K. Petersen
2019-06-20 23:43 ` Finn Thain
2019-06-21 10:41 ` Marc Gonzalez
2019-06-21 23:50 ` Finn Thain
2019-06-18 3:28 ` Bart Van Assche
2019-06-18 17:43 ` Elliott, Robert (Servers)
2019-07-05 7:22 ` Hannes Reinecke
2019-07-05 17:53 ` Douglas Gilbert
[not found] ` <284c3ecc-b3a8-eeec-92d5-5eda1f20f691@suse.de>
2019-07-08 13:02 ` Douglas Gilbert
2019-07-05 7:18 ` Hannes Reinecke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e04e14b7-e1ee-c0c1-9e6d-2628d2c873a9@free.fr \
--to=marc.w.gonzalez@free.fr \
--cc=bvanassche@acm.org \
--cc=dgilbert@interlog.com \
--cc=fthain@telegraphics.com.au \
--cc=hch@lst.de \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox