Skip to content
Commit 07fbd32a authored by Martin K. Petersen's avatar Martin K. Petersen Committed by Sagi Grimberg
Browse files

nvme: honor RTD3 Entry Latency for shutdowns



If an NVMe controller reports RTD3 Entry Latency larger than
shutdown_timeout, up to a maximum of 60 seconds, use that value to set
the shutdown timer. Otherwise fall back to the module parameter which
defaults to 5 seconds.

Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
[hch: removed do_div, made transition time local scope]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 5228b328
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment