diff options
| author | Russell Harmon <russ@har.mn> | 2025-01-15 05:13:41 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-01 18:39:36 +0100 |
| commit | d15dfc4e57cf33d68573bfd7796963e8fc3fd55d (patch) | |
| tree | c2d763dee46d17d894d47187d350bbf97517e8e4 /drivers/hwmon | |
| parent | 418bd70d1aca4bb06fc2a3a9508461d626738807 (diff) | |
| download | linux-d15dfc4e57cf33d68573bfd7796963e8fc3fd55d.tar.gz linux-d15dfc4e57cf33d68573bfd7796963e8fc3fd55d.tar.bz2 linux-d15dfc4e57cf33d68573bfd7796963e8fc3fd55d.zip | |
hwmon: (drivetemp) Set scsi command timeout to 10s
[ Upstream commit b46ba47d7bb461a0969317be1f2e165c0571d6c5 ]
There's at least one drive (MaxDigitalData OOS14000G) such that if it
receives a large amount of I/O while entering an idle power state will
first exit idle before responding, including causing SMART temperature
requests to be delayed.
This causes the drivetemp request to exceed its timeout of 1 second.
Signed-off-by: Russell Harmon <russ@har.mn>
Link: https://lore.kernel.org/r/20250115131340.3178988-1-russ@har.mn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwmon')
| -rw-r--r-- | drivers/hwmon/drivetemp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/drivetemp.c b/drivers/hwmon/drivetemp.c index 2a4ec55ddb47..291d91f68646 100644 --- a/drivers/hwmon/drivetemp.c +++ b/drivers/hwmon/drivetemp.c @@ -194,7 +194,7 @@ static int drivetemp_scsi_command(struct drivetemp_data *st, scsi_cmd[14] = ata_command; err = scsi_execute_cmd(st->sdev, scsi_cmd, op, st->smartdata, - ATA_SECT_SIZE, HZ, 5, NULL); + ATA_SECT_SIZE, 10 * HZ, 5, NULL); if (err > 0) err = -EIO; return err; |
