Linux block layer
 help / color / mirror / Atom feed
* [PATCH] null_blk: Fix description of the fua parameter
@ 2024-07-02  7:32 Damien Le Moal
  2024-07-02  7:43 ` Christoph Hellwig
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Damien Le Moal @ 2024-07-02  7:32 UTC (permalink / raw)
  To: Jens Axboe, linux-block

The description of the fua module parameter is defined using
MODULE_PARM_DESC() with the first argument passed being "zoned". That is
the wrong name, obviously. Fix that by using the correct "fua" parameter
name so that "modinfo null_blk" displays correct information.

Fixes: f4f84586c8b9 ("null_blk: Introduce fua attribute")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
---
 drivers/block/null_blk/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c
index 83a4ebe4763a..5de9ca4eceb4 100644
--- a/drivers/block/null_blk/main.c
+++ b/drivers/block/null_blk/main.c
@@ -227,7 +227,7 @@ MODULE_PARM_DESC(mbps, "Cache size in MiB for memory-backed device. Default: 0 (
 
 static bool g_fua = true;
 module_param_named(fua, g_fua, bool, 0444);
-MODULE_PARM_DESC(zoned, "Enable/disable FUA support when cache_size is used. Default: true");
+MODULE_PARM_DESC(fua, "Enable/disable FUA support when cache_size is used. Default: true");
 
 static unsigned int g_mbps;
 module_param_named(mbps, g_mbps, uint, 0444);
-- 
2.45.2


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

* Re: [PATCH] null_blk: Fix description of the fua parameter
  2024-07-02  7:32 [PATCH] null_blk: Fix description of the fua parameter Damien Le Moal
@ 2024-07-02  7:43 ` Christoph Hellwig
  2024-07-02  7:52 ` Chaitanya Kulkarni
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Christoph Hellwig @ 2024-07-02  7:43 UTC (permalink / raw)
  To: Damien Le Moal; +Cc: Jens Axboe, linux-block

On Tue, Jul 02, 2024 at 04:32:34PM +0900, Damien Le Moal wrote:
> The description of the fua module parameter is defined using
> MODULE_PARM_DESC() with the first argument passed being "zoned". That is
> the wrong name, obviously. Fix that by using the correct "fua" parameter
> name so that "modinfo null_blk" displays correct information.

Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>


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

* Re: [PATCH] null_blk: Fix description of the fua parameter
  2024-07-02  7:32 [PATCH] null_blk: Fix description of the fua parameter Damien Le Moal
  2024-07-02  7:43 ` Christoph Hellwig
@ 2024-07-02  7:52 ` Chaitanya Kulkarni
  2024-07-02 14:58 ` Jens Axboe
  2024-07-04  0:34 ` Zhu Yanjun
  3 siblings, 0 replies; 5+ messages in thread
From: Chaitanya Kulkarni @ 2024-07-02  7:52 UTC (permalink / raw)
  To: Damien Le Moal, Jens Axboe, linux-block@vger.kernel.org

On 7/2/24 00:32, Damien Le Moal wrote:
> The description of the fua module parameter is defined using
> MODULE_PARM_DESC() with the first argument passed being "zoned". That is
> the wrong name, obviously. Fix that by using the correct "fua" parameter
> name so that "modinfo null_blk" displays correct information.
>
> Fixes: f4f84586c8b9 ("null_blk: Introduce fua attribute")
> Cc: stable@vger.kernel.org
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
> ---
>

Looks good.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>

-ck



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

* Re: [PATCH] null_blk: Fix description of the fua parameter
  2024-07-02  7:32 [PATCH] null_blk: Fix description of the fua parameter Damien Le Moal
  2024-07-02  7:43 ` Christoph Hellwig
  2024-07-02  7:52 ` Chaitanya Kulkarni
@ 2024-07-02 14:58 ` Jens Axboe
  2024-07-04  0:34 ` Zhu Yanjun
  3 siblings, 0 replies; 5+ messages in thread
From: Jens Axboe @ 2024-07-02 14:58 UTC (permalink / raw)
  To: linux-block, Damien Le Moal


On Tue, 02 Jul 2024 16:32:34 +0900, Damien Le Moal wrote:
> The description of the fua module parameter is defined using
> MODULE_PARM_DESC() with the first argument passed being "zoned". That is
> the wrong name, obviously. Fix that by using the correct "fua" parameter
> name so that "modinfo null_blk" displays correct information.
> 
> 

Applied, thanks!

[1/1] null_blk: Fix description of the fua parameter
      commit: 1c0b3fca381bf879e2168b362692f83808677f95

Best regards,
-- 
Jens Axboe




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

* Re: [PATCH] null_blk: Fix description of the fua parameter
  2024-07-02  7:32 [PATCH] null_blk: Fix description of the fua parameter Damien Le Moal
                   ` (2 preceding siblings ...)
  2024-07-02 14:58 ` Jens Axboe
@ 2024-07-04  0:34 ` Zhu Yanjun
  3 siblings, 0 replies; 5+ messages in thread
From: Zhu Yanjun @ 2024-07-04  0:34 UTC (permalink / raw)
  To: Damien Le Moal, Jens Axboe, linux-block

在 2024/7/2 15:32, Damien Le Moal 写道:
> The description of the fua module parameter is defined using
> MODULE_PARM_DESC() with the first argument passed being "zoned". That is
> the wrong name, obviously. Fix that by using the correct "fua" parameter
> name so that "modinfo null_blk" displays correct information.
> 
> Fixes: f4f84586c8b9 ("null_blk: Introduce fua attribute")
> Cc: stable@vger.kernel.org
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
> ---
>   drivers/block/null_blk/main.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c
> index 83a4ebe4763a..5de9ca4eceb4 100644
> --- a/drivers/block/null_blk/main.c
> +++ b/drivers/block/null_blk/main.c
> @@ -227,7 +227,7 @@ MODULE_PARM_DESC(mbps, "Cache size in MiB for memory-backed device. Default: 0 (
>   
>   static bool g_fua = true;
>   module_param_named(fua, g_fua, bool, 0444);
> -MODULE_PARM_DESC(zoned, "Enable/disable FUA support when cache_size is used. Default: true");
> +MODULE_PARM_DESC(fua, "Enable/disable FUA support when cache_size is used. Default: true");

Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>

Zhu Yanjun

>   
>   static unsigned int g_mbps;
>   module_param_named(mbps, g_mbps, uint, 0444);


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

end of thread, other threads:[~2024-07-04  0:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-02  7:32 [PATCH] null_blk: Fix description of the fua parameter Damien Le Moal
2024-07-02  7:43 ` Christoph Hellwig
2024-07-02  7:52 ` Chaitanya Kulkarni
2024-07-02 14:58 ` Jens Axboe
2024-07-04  0:34 ` Zhu Yanjun

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