]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
nvme: modify the debug level for setting shutdown timeout
authorMax Gurtovoy <maxg@mellanox.com>
Sun, 31 Dec 2017 13:33:27 +0000 (15:33 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 8 Jan 2018 10:02:00 +0000 (11:02 +0100)
When an NVMe controller reports RTD3 Entry Latency larger than the value
of shutdown_timeout module parameter, we update the shutdown_timeout
accordingly to honor RTD3 Entry Latency. Use an informational debug level
instead of a warning level for it.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c

index f837d666cbd499c8e33a1514f55344a1796005a1..2a69d735efbcef7bc2970b3cb1083f48e84d7a81 100644 (file)
@@ -2252,7 +2252,7 @@ int nvme_init_identify(struct nvme_ctrl *ctrl)
                                                 shutdown_timeout, 60);
 
                if (ctrl->shutdown_timeout != shutdown_timeout)
-                       dev_warn(ctrl->device,
+                       dev_info(ctrl->device,
                                 "Shutdown timeout set to %u seconds\n",
                                 ctrl->shutdown_timeout);
        } else