Linux-NVME Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fabrics: Fix fast_io_fail_tmo option
@ 2024-04-02 12:18 Israel Rukshin
  2024-04-02 15:47 ` Max Gurtovoy
  2024-04-03 10:16 ` Daniel Wagner
  0 siblings, 2 replies; 4+ messages in thread
From: Israel Rukshin @ 2024-04-02 12:18 UTC (permalink / raw)
  To: Max Gurtovoy, Linux-nvme, Sagi Grimberg, Christoph Hellwig; +Cc: Israel Rukshin

The option was partially removed by a refactoring commit.
Return it back, because it is still supported by the kernel
driver.

Fixes: 18de3a6d61a7 ("Convert to libnvme")
Signed-off-by: Israel Rukshin <israelr@nvidia.com>
---
 fabrics.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fabrics.c b/fabrics.c
index 6b25f74e..14682907 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -78,6 +78,7 @@ static const char *nvmf_queue_size	= "number of io queue elements to use (defaul
 static const char *nvmf_keep_alive_tmo	= "keep alive timeout period in seconds";
 static const char *nvmf_reconnect_delay	= "reconnect timeout period in seconds";
 static const char *nvmf_ctrl_loss_tmo	= "controller loss timeout period in seconds";
+static const char *nvmf_fast_io_fail_tmo = "fast I/O fail timeout (default off)";
 static const char *nvmf_tos		= "type of service";
 static const char *nvmf_keyring		= "Keyring for TLS key lookup";
 static const char *nvmf_tls_key		= "TLS key to use";
@@ -108,6 +109,7 @@ static const char *nvmf_context		= "execution context identification string";
 		OPT_INT("keep-alive-tmo",     'k', &c.keep_alive_tmo,     nvmf_keep_alive_tmo),  \
 		OPT_INT("reconnect-delay",    'c', &c.reconnect_delay,    nvmf_reconnect_delay), \
 		OPT_INT("ctrl-loss-tmo",      'l', &c.ctrl_loss_tmo,      nvmf_ctrl_loss_tmo),   \
+		OPT_INT("fast_io_fail_tmo",   'F', &c.fast_io_fail_tmo,   nvmf_fast_io_fail_tmo),\
 		OPT_INT("tos",                'T', &c.tos,                nvmf_tos),             \
 		OPT_INT("keyring",              0, &c.keyring,            nvmf_keyring),         \
 		OPT_INT("tls_key",              0, &c.tls_key,            nvmf_tls_key),         \
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] fabrics: Fix fast_io_fail_tmo option
  2024-04-02 12:18 [PATCH] fabrics: Fix fast_io_fail_tmo option Israel Rukshin
@ 2024-04-02 15:47 ` Max Gurtovoy
  2024-04-03  6:36   ` Israel Rukshin
  2024-04-03 10:16 ` Daniel Wagner
  1 sibling, 1 reply; 4+ messages in thread
From: Max Gurtovoy @ 2024-04-02 15:47 UTC (permalink / raw)
  To: Israel Rukshin, Linux-nvme, Sagi Grimberg, Christoph Hellwig



On 02/04/2024 15:18, Israel Rukshin wrote:
> The option was partially removed by a refactoring commit.
> Return it back, because it is still supported by the kernel
> driver.
> 
> Fixes: 18de3a6d61a7 ("Convert to libnvme")
> Signed-off-by: Israel Rukshin <israelr@nvidia.com>
> ---
>   fabrics.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/fabrics.c b/fabrics.c
> index 6b25f74e..14682907 100644
> --- a/fabrics.c
> +++ b/fabrics.c
> @@ -78,6 +78,7 @@ static const char *nvmf_queue_size	= "number of io queue elements to use (defaul
>   static const char *nvmf_keep_alive_tmo	= "keep alive timeout period in seconds";
>   static const char *nvmf_reconnect_delay	= "reconnect timeout period in seconds";
>   static const char *nvmf_ctrl_loss_tmo	= "controller loss timeout period in seconds";
> +static const char *nvmf_fast_io_fail_tmo = "fast I/O fail timeout (default off)";
>   static const char *nvmf_tos		= "type of service";
>   static const char *nvmf_keyring		= "Keyring for TLS key lookup";
>   static const char *nvmf_tls_key		= "TLS key to use";
> @@ -108,6 +109,7 @@ static const char *nvmf_context		= "execution context identification string";
>   		OPT_INT("keep-alive-tmo",     'k', &c.keep_alive_tmo,     nvmf_keep_alive_tmo),  \
>   		OPT_INT("reconnect-delay",    'c', &c.reconnect_delay,    nvmf_reconnect_delay), \
>   		OPT_INT("ctrl-loss-tmo",      'l', &c.ctrl_loss_tmo,      nvmf_ctrl_loss_tmo),   \
> +		OPT_INT("fast_io_fail_tmo",   'F', &c.fast_io_fail_tmo,   nvmf_fast_io_fail_tmo),\
>   		OPT_INT("tos",                'T', &c.tos,                nvmf_tos),             \
>   		OPT_INT("keyring",              0, &c.keyring,            nvmf_keyring),         \
>   		OPT_INT("tls_key",              0, &c.tls_key,            nvmf_tls_key),         \

In the previous version I've noticed that the short symbol was 'f':
"
- 
OPT_INT("fast_io_fail_tmo",'f',&fabrics_cfg.fast_io_fail_tmo, "fast I/O 
fail timeout (default off)"),
"

Any reason to make it 'F' now ?


Otherwise looks good,
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] fabrics: Fix fast_io_fail_tmo option
  2024-04-02 15:47 ` Max Gurtovoy
@ 2024-04-03  6:36   ` Israel Rukshin
  0 siblings, 0 replies; 4+ messages in thread
From: Israel Rukshin @ 2024-04-03  6:36 UTC (permalink / raw)
  To: Max Gurtovoy, Linux-nvme, Sagi Grimberg, Christoph Hellwig

On 4/2/2024 6:47 PM, Max Gurtovoy wrote:
> In the previous version I've noticed that the short symbol was 'f':
> "
> - OPT_INT("fast_io_fail_tmo",'f',&fabrics_cfg.fast_io_fail_tmo, "fast 
> I/O fail timeout (default off)"),
> "
>
> Any reason to make it 'F' now ?
Yes, 'f' is now taken by "host-iface".
>
>
> Otherwise looks good,
> Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] fabrics: Fix fast_io_fail_tmo option
  2024-04-02 12:18 [PATCH] fabrics: Fix fast_io_fail_tmo option Israel Rukshin
  2024-04-02 15:47 ` Max Gurtovoy
@ 2024-04-03 10:16 ` Daniel Wagner
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Wagner @ 2024-04-03 10:16 UTC (permalink / raw)
  To: Max Gurtovoy, Linux-nvme, Sagi Grimberg, Christoph Hellwig,
	Israel Rukshin
  Cc: Daniel Wagner


On Tue, 02 Apr 2024 12:18:12 +0000, Israel Rukshin wrote:
> The option was partially removed by a refactoring commit.
> Return it back, because it is still supported by the kernel
> driver.
> 
> 

Applied, thanks!

[1/1] fabrics: Fix fast_io_fail_tmo option
      commit: 14ee80dfe872e138dced8eb3f33aee46329eb078

Best regards,
-- 
Daniel Wagner <dwagner@suse.de>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-03 10:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-02 12:18 [PATCH] fabrics: Fix fast_io_fail_tmo option Israel Rukshin
2024-04-02 15:47 ` Max Gurtovoy
2024-04-03  6:36   ` Israel Rukshin
2024-04-03 10:16 ` Daniel Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox