* rules: avoid traversing parent of every single device?
@ 2009-05-22 14:15 Alan Jenkins
2009-05-22 14:26 ` Kay Sievers
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Alan Jenkins @ 2009-05-22 14:15 UTC (permalink / raw)
To: linux-hotplug
Hi,
I've been looking at what is responsible for all the path lookup
activity in coldplug. On my debian stable system, it looks like every
device gets its parent looked up in sysfs. I think this is due to
SUBSYSTEMS matches.
I see the udev default rules are different, but it looks like they still
test for SUBSYSTEMS on every single device:
SUBSYSTEMS="scsi", ATTRS{type}="1|8", GROUP="tape"
SUBSYSTEMS="scsi", ATTRS{type}="4|5", GROUP="cdrom"
SUBSYSTEMS="scsi", ATTRS{type}="0", GROUP="disk"
Should we add SUBSYSTEM="scsi_generic" to these three rules?
Thanks
Alan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rules: avoid traversing parent of every single device?
2009-05-22 14:15 rules: avoid traversing parent of every single device? Alan Jenkins
@ 2009-05-22 14:26 ` Kay Sievers
2009-05-22 14:33 ` Alan Jenkins
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Kay Sievers @ 2009-05-22 14:26 UTC (permalink / raw)
To: linux-hotplug
On Fri, May 22, 2009 at 16:15, Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote:
> I've been looking at what is responsible for all the path lookup activity in
> coldplug. On my debian stable system, it looks like every device gets its
> parent looked up in sysfs. I think this is due to SUBSYSTEMS matches.
>
> I see the udev default rules are different, but it looks like they still
> test for SUBSYSTEMS on every single device:
>
> SUBSYSTEMS="scsi", ATTRS{type}="1|8", GROUP="tape"
> SUBSYSTEMS="scsi", ATTRS{type}="4|5", GROUP="cdrom"
> SUBSYSTEMS="scsi", ATTRS{type}="0", GROUP="disk"
>
>
> Should we add SUBSYSTEM="scsi_generic" to these three rules?
Sounds good. I think the "tape" will need a match for the actual
scsi-tape devices too? The real "cdrom" and "disk" devices seems
covered by explicit rules.
Thanks,
Kay
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rules: avoid traversing parent of every single device?
2009-05-22 14:15 rules: avoid traversing parent of every single device? Alan Jenkins
2009-05-22 14:26 ` Kay Sievers
@ 2009-05-22 14:33 ` Alan Jenkins
2009-05-22 14:37 ` Kay Sievers
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Alan Jenkins @ 2009-05-22 14:33 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers wrote:
> On Fri, May 22, 2009 at 16:15, Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote:
>
>> I've been looking at what is responsible for all the path lookup activity in
>> coldplug. On my debian stable system, it looks like every device gets its
>> parent looked up in sysfs. I think this is due to SUBSYSTEMS matches.
>>
>> I see the udev default rules are different, but it looks like they still
>> test for SUBSYSTEMS on every single device:
>>
>> SUBSYSTEMS="scsi", ATTRS{type}="1|8", GROUP="tape"
>> SUBSYSTEMS="scsi", ATTRS{type}="4|5", GROUP="cdrom"
>> SUBSYSTEMS="scsi", ATTRS{type}="0", GROUP="disk"
>>
>>
>> Should we add SUBSYSTEM="scsi_generic" to these three rules?
>>
>
> Sounds good. I think the "tape" will need a match for the actual
> scsi-tape devices too? The real "cdrom" and "disk" devices seems
> covered by explicit rules.
>
Yes, good catch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rules: avoid traversing parent of every single device?
2009-05-22 14:15 rules: avoid traversing parent of every single device? Alan Jenkins
2009-05-22 14:26 ` Kay Sievers
2009-05-22 14:33 ` Alan Jenkins
@ 2009-05-22 14:37 ` Kay Sievers
2009-05-22 14:42 ` Alan Jenkins
2009-05-22 14:47 ` Kay Sievers
4 siblings, 0 replies; 6+ messages in thread
From: Kay Sievers @ 2009-05-22 14:37 UTC (permalink / raw)
To: linux-hotplug
On Fri, May 22, 2009 at 16:33, Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote:
>>> Should we add SUBSYSTEM="scsi_generic" to these three rules?
>>
>> Sounds good. I think the "tape" will need a match for the actual
>> scsi-tape devices too? The real "cdrom" and "disk" devices seems
>> covered by explicit rules.
>
> Yes, good catch.
SUBSYSTEM="scsi_generic|scsi_tape", SUBSYSTEMS="scsi", ... should be fine.
Should I add all that, or do you have a patch already?
Kay
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rules: avoid traversing parent of every single device?
2009-05-22 14:15 rules: avoid traversing parent of every single device? Alan Jenkins
` (2 preceding siblings ...)
2009-05-22 14:37 ` Kay Sievers
@ 2009-05-22 14:42 ` Alan Jenkins
2009-05-22 14:47 ` Kay Sievers
4 siblings, 0 replies; 6+ messages in thread
From: Alan Jenkins @ 2009-05-22 14:42 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers wrote:
> On Fri, May 22, 2009 at 16:33, Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote:
>
>>>> Should we add SUBSYSTEM="scsi_generic" to these three rules?
>>>>
>>> Sounds good. I think the "tape" will need a match for the actual
>>> scsi-tape devices too? The real "cdrom" and "disk" devices seems
>>> covered by explicit rules.
>>>
>> Yes, good catch.
>>
>
> SUBSYSTEM="scsi_generic|scsi_tape", SUBSYSTEMS="scsi", ... should be fine.
>
> Should I add all that, or do you have a patch already?
>
You can go ahead with that.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rules: avoid traversing parent of every single device?
2009-05-22 14:15 rules: avoid traversing parent of every single device? Alan Jenkins
` (3 preceding siblings ...)
2009-05-22 14:42 ` Alan Jenkins
@ 2009-05-22 14:47 ` Kay Sievers
4 siblings, 0 replies; 6+ messages in thread
From: Kay Sievers @ 2009-05-22 14:47 UTC (permalink / raw)
To: linux-hotplug
On Fri, May 22, 2009 at 16:42, Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote:
>> Should I add all that, or do you have a patch already?
>
> You can go ahead with that.
Done.
Thanks,
Kay
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-05-22 14:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-22 14:15 rules: avoid traversing parent of every single device? Alan Jenkins
2009-05-22 14:26 ` Kay Sievers
2009-05-22 14:33 ` Alan Jenkins
2009-05-22 14:37 ` Kay Sievers
2009-05-22 14:42 ` Alan Jenkins
2009-05-22 14:47 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).