1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-21 07:15:49 +00:00

camcontrol: Bump timeout to get size of drive

When the system is very busy, and the ATA hard disk drives are
overloaded due to reading dodgy sectors, it can take several seconds to
drain the NCQ set of commands to send this command to the drive. Up the
timeout from 5s to 10s out of an abundance of caution, but also to allow
monitioring software that uses camcontrol identify to not fail
needlessly.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2024-10-28 16:33:07 -06:00
parent b02d6a6b5a
commit 73979b7f0b

View File

@ -2102,7 +2102,7 @@ ata_read_native_max(struct cam_device *device, int retry_count,
/*sector_count*/0, /*sector_count*/0,
/*data_ptr*/NULL, /*data_ptr*/NULL,
/*dxfer_len*/0, /*dxfer_len*/0,
timeout ? timeout : 5000, timeout ? timeout : 10 * 1000,
is48bit); is48bit);
if (error) if (error)