]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: honor RTD3 Entry Latency for shutdowns
authorMartin K. Petersen <martin.petersen@oracle.com>
Thu, 5 Oct 2017 20:09:50 +0000 (13:09 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 23 Oct 2017 04:36:06 +0000 (21:36 -0700)
commit1b7c29ffc0b833692c3a6dadf21803cda8b4b959
tree3cd7a43d1f5cf2a70126c271c5d82484d43a02a1
parent8519ee5a76ba96ac1de2d24742f9805bff84f329
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: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
[hch: removed do_div, made transition time local scope]
Signed-off-by: Christoph Hellwig <hch@lst.de>
(cherry picked from commit 07fbd32a6b215d8b2fc01ccc89622207b9b782fd)

Orabug: 26999048

Signed-off-by: Ashok Vairavan<ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h