mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-26 20:12:44 +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:
parent
b02d6a6b5a
commit
73979b7f0b
@ -2102,7 +2102,7 @@ ata_read_native_max(struct cam_device *device, int retry_count,
|
||||
/*sector_count*/0,
|
||||
/*data_ptr*/NULL,
|
||||
/*dxfer_len*/0,
|
||||
timeout ? timeout : 5000,
|
||||
timeout ? timeout : 10 * 1000,
|
||||
is48bit);
|
||||
|
||||
if (error)
|
||||
|
Loading…
Reference in New Issue
Block a user