public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCHv14 00/11] block write streams with nvme fdp
       [not found] ` <20241211183514.64070-1-kbusch@meta.com>
@ 2024-12-12 11:39   ` Kanchan Joshi
       [not found]   ` <20241211183514.64070-11-kbusch@meta.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Kanchan Joshi @ 2024-12-12 11:39 UTC (permalink / raw)
  To: Keith Busch, axboe, hch, linux-block, linux-nvme, linux-fsdevel,
	io-uring
  Cc: sagi, asml.silence, anuj20.g, Keith Busch

For
> 16 files changed, 341 insertions(+), 6 deletions(-)

Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>

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

* Re: [PATCHv14 10/11] nvme: register fdp parameters with the block layer
       [not found]   ` <20241211183514.64070-11-kbusch@meta.com>
@ 2024-12-12 13:14     ` Hannes Reinecke
  2024-12-13  5:53     ` Nitesh Shetty
  2024-12-16 16:12     ` Christoph Hellwig
  2 siblings, 0 replies; 4+ messages in thread
From: Hannes Reinecke @ 2024-12-12 13:14 UTC (permalink / raw)
  To: Keith Busch, axboe, hch, linux-block, linux-nvme, linux-fsdevel,
	io-uring
  Cc: sagi, asml.silence, anuj20.g, joshi.k, Keith Busch

On 12/11/24 19:35, Keith Busch wrote:
> From: Keith Busch <kbusch@kernel.org>
> 
> Register the device data placement limits if supported. This is just
> registering the limits with the block layer. Nothing beyond reporting
> these attributes is happening in this patch.
> 
> Signed-off-by: Keith Busch <kbusch@kernel.org>
> ---
>   drivers/nvme/host/core.c | 145 +++++++++++++++++++++++++++++++++++++++
>   drivers/nvme/host/nvme.h |   2 +
>   2 files changed, 147 insertions(+)
> 
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare@suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich

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

* Re: [PATCHv14 10/11] nvme: register fdp parameters with the block layer
       [not found]   ` <20241211183514.64070-11-kbusch@meta.com>
  2024-12-12 13:14     ` [PATCHv14 10/11] nvme: register fdp parameters with the block layer Hannes Reinecke
@ 2024-12-13  5:53     ` Nitesh Shetty
  2024-12-16 16:12     ` Christoph Hellwig
  2 siblings, 0 replies; 4+ messages in thread
From: Nitesh Shetty @ 2024-12-13  5:53 UTC (permalink / raw)
  To: Keith Busch
  Cc: axboe, hch, linux-block, linux-nvme, linux-fsdevel, io-uring,
	sagi, asml.silence, anuj20.g, joshi.k, Keith Busch

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

On 11/12/24 10:35AM, Keith Busch wrote:
>From: Keith Busch <kbusch@kernel.org>
>
>Register the device data placement limits if supported. This is just
>registering the limits with the block layer. Nothing beyond reporting
>these attributes is happening in this patch.
>
>Signed-off-by: Keith Busch <kbusch@kernel.org>
>---

Reviewed-by: Nitesh Shetty <nj.shetty@samsung.com>

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



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

* Re: [PATCHv14 10/11] nvme: register fdp parameters with the block layer
       [not found]   ` <20241211183514.64070-11-kbusch@meta.com>
  2024-12-12 13:14     ` [PATCHv14 10/11] nvme: register fdp parameters with the block layer Hannes Reinecke
  2024-12-13  5:53     ` Nitesh Shetty
@ 2024-12-16 16:12     ` Christoph Hellwig
  2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2024-12-16 16:12 UTC (permalink / raw)
  To: Keith Busch
  Cc: axboe, hch, linux-block, linux-nvme, linux-fsdevel, io-uring,
	sagi, asml.silence, anuj20.g, joshi.k, Keith Busch

On Wed, Dec 11, 2024 at 10:35:13AM -0800, Keith Busch wrote:
> +	size = le32_to_cpu(hdr.sze);
> +	if (size > PAGE_SIZE * MAX_ORDER_NR_PAGES) {
> +		dev_warn(ctrl->device, "FDP config size too large:%zu\n",
> +			 size);
> +		return 0;
> +	h = vmalloc(size);
> +	if (!h)
> +		return -ENOMEM;

Isn't an unconditional vmalloc here for something that usually should
have less than a handful of descriptors a little aggressive?  I'd use
kvmalloc here to get the best of both worlds, and the free path seems
to already use kvfree anyway.

Otherwise the incremental changes vs the previous version for the entire
series look good to me.

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

end of thread, other threads:[~2024-12-16 16:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20241211190851epcas5p2a359c12000fc73df8920e4801563504c@epcas5p2.samsung.com>
     [not found] ` <20241211183514.64070-1-kbusch@meta.com>
2024-12-12 11:39   ` [PATCHv14 00/11] block write streams with nvme fdp Kanchan Joshi
     [not found]   ` <20241211183514.64070-11-kbusch@meta.com>
2024-12-12 13:14     ` [PATCHv14 10/11] nvme: register fdp parameters with the block layer Hannes Reinecke
2024-12-13  5:53     ` Nitesh Shetty
2024-12-16 16:12     ` Christoph Hellwig

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