2008-10-30 02:55:30

by Tejun Heo

[permalink] [raw]
Subject: why does udev set timeout for all SCSI devices?

Hello, Kay.

As the $SUBJ says, why does udev set timeout for all SCSI devices?
It's the following two rules.

50-udev-default.rules:SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*",
ACTION=="add", ATTR{type}=="0|7|14", ATTR{timeout}="60"
50-udev-default.rules:SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*",
ACTION=="add", ATTR{type}=="1", ATTR{timeout}="900"

The appropriate default timeout differs depending on the transport and
the type of the attached device, so the above two rules harm more than
help. The affect of the above two rules weren't visible for some
reason but with recent block layer timeout update, they actually work
and cause problems.

Thanks.

--
tejun


2008-10-30 08:31:18

by Kay Sievers

[permalink] [raw]
Subject: Re: why does udev set timeout for all SCSI devices?

On Thu, Oct 30, 2008 at 03:55, Tejun Heo <[email protected]> wrote:
> As the $SUBJ says, why does udev set timeout for all SCSI devices?
> It's the following two rules.
>
> 50-udev-default.rules:SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*",
> ACTION=="add", ATTR{type}=="0|7|14", ATTR{timeout}="60"
> 50-udev-default.rules:SUBSYSTEM=="scsi", KERNEL=="[0-9]*:[0-9]*",
> ACTION=="add", ATTR{type}=="1", ATTR{timeout}="900"
>
> The appropriate default timeout differs depending on the transport and
> the type of the attached device, so the above two rules harm more than
> help. The affect of the above two rules weren't visible for some
> reason but with recent block layer timeout update, they actually work
> and cause problems.

It's in there for years, I can not even dig out, where it is coming
from. I just removed it from the default rules.

Thanks,
Kay