Skip to content

Commit b46ba47

Browse files
eatnumber1groeck
authored andcommitted
hwmon: (drivetemp) Set scsi command timeout to 10s
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 8d6bf2e commit b46ba47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/drivetemp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static int drivetemp_scsi_command(struct drivetemp_data *st,
194194
scsi_cmd[14] = ata_command;
195195

196196
err = scsi_execute_cmd(st->sdev, scsi_cmd, op, st->smartdata,
197-
ATA_SECT_SIZE, HZ, 5, NULL);
197+
ATA_SECT_SIZE, 10 * HZ, 5, NULL);
198198
if (err > 0)
199199
err = -EIO;
200200
return err;

0 commit comments

Comments
 (0)