diff options
author | Hannes Reinecke <hare@suse.de> | 2021-04-16 13:46:20 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-04-21 19:13:15 +0200 |
commit | a70b81bd4d9d2d6c05cfe6ef2a10bccc2e04357a (patch) | |
tree | b8bf44fd9e9a4f1d7a8c2cc34d10743e33490af4 /drivers/nvme/host/nvme.h | |
parent | nvmet: avoid queuing keep-alive timer if it is disabled (diff) | |
download | linux-a70b81bd4d9d2d6c05cfe6ef2a10bccc2e04357a.tar.xz linux-a70b81bd4d9d2d6c05cfe6ef2a10bccc2e04357a.zip |
nvme: sanitize KATO setting
According to the NVMe base spec the KATO commands should be sent
at half of the KATO interval, to properly account for round-trip
times.
As we now will only ever send one KATO command per connection we
can easily use the recommended values.
This also fixes a potential issue where the request timeout for
the KATO command does not match the value in the connect command,
which might be causing spurious connection drops from the target.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/nvme.h')
-rw-r--r-- | drivers/nvme/host/nvme.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvme/host/nvme.h b/drivers/nvme/host/nvme.h index c6102ce83bb4..49276186d5bd 100644 --- a/drivers/nvme/host/nvme.h +++ b/drivers/nvme/host/nvme.h @@ -27,7 +27,6 @@ extern unsigned int admin_timeout; #define NVME_ADMIN_TIMEOUT (admin_timeout * HZ) #define NVME_DEFAULT_KATO 5 -#define NVME_KATO_GRACE 10 #ifdef CONFIG_ARCH_NO_SG_CHAIN #define NVME_INLINE_SG_CNT 0 |