* [PATCH] blk-mq: fix forward declaration for rdma mapping
@ 2023-03-21 21:50 Keith Busch
2023-03-22 1:49 ` Chaitanya Kulkarni
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Keith Busch @ 2023-03-21 21:50 UTC (permalink / raw)
To: linux-block, axboe; +Cc: Keith Busch, Sagi Grimberg
From: Keith Busch <kbusch@kernel.org>
blk_mq_rdma_map_queues() used to take a 'blk_mq_tag_set *' parameter,
but was changed to 'blk_mq_queue_map *'. The forward declaration needs
to be updated so .c files won't have to include headers in a specific
order.
Fixes: e42b3867de4bd5e ("blk-mq-rdma: pass in queue map to blk_mq_rdma_map_queues")
Cc: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
---
include/linux/blk-mq-rdma.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/blk-mq-rdma.h b/include/linux/blk-mq-rdma.h
index 53b58c610e767..d7ead42f1c6ad 100644
--- a/include/linux/blk-mq-rdma.h
+++ b/include/linux/blk-mq-rdma.h
@@ -2,7 +2,7 @@
#ifndef _LINUX_BLK_MQ_RDMA_H
#define _LINUX_BLK_MQ_RDMA_H
-struct blk_mq_tag_set;
+struct blk_mq_queue_map;
struct ib_device;
void blk_mq_rdma_map_queues(struct blk_mq_queue_map *map,
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] blk-mq: fix forward declaration for rdma mapping
2023-03-21 21:50 [PATCH] blk-mq: fix forward declaration for rdma mapping Keith Busch
@ 2023-03-22 1:49 ` Chaitanya Kulkarni
2023-03-22 7:16 ` Sagi Grimberg
2023-03-22 8:33 ` Daniel Wagner
2 siblings, 0 replies; 4+ messages in thread
From: Chaitanya Kulkarni @ 2023-03-22 1:49 UTC (permalink / raw)
To: Keith Busch, linux-block, axboe; +Cc: Keith Busch, Sagi Grimberg
On 3/21/2023 2:50 PM, Keith Busch wrote:
> From: Keith Busch <kbusch@kernel.org>
>
> blk_mq_rdma_map_queues() used to take a 'blk_mq_tag_set *' parameter,
> but was changed to 'blk_mq_queue_map *'. The forward declaration needs
> to be updated so .c files won't have to include headers in a specific
> order.
>
> Fixes: e42b3867de4bd5e ("blk-mq-rdma: pass in queue map to blk_mq_rdma_map_queues")
> Cc: Sagi Grimberg <sagi@grimberg.me>
> Signed-off-by: Keith Busch <kbusch@kernel.org>
> ---
LGTM.
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
-ck
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] blk-mq: fix forward declaration for rdma mapping
2023-03-21 21:50 [PATCH] blk-mq: fix forward declaration for rdma mapping Keith Busch
2023-03-22 1:49 ` Chaitanya Kulkarni
@ 2023-03-22 7:16 ` Sagi Grimberg
2023-03-22 8:33 ` Daniel Wagner
2 siblings, 0 replies; 4+ messages in thread
From: Sagi Grimberg @ 2023-03-22 7:16 UTC (permalink / raw)
To: Keith Busch, linux-block, axboe; +Cc: Keith Busch
> From: Keith Busch <kbusch@kernel.org>
>
> blk_mq_rdma_map_queues() used to take a 'blk_mq_tag_set *' parameter,
> but was changed to 'blk_mq_queue_map *'. The forward declaration needs
> to be updated so .c files won't have to include headers in a specific
> order.
>
> Fixes: e42b3867de4bd5e ("blk-mq-rdma: pass in queue map to blk_mq_rdma_map_queues")
> Cc: Sagi Grimberg <sagi@grimberg.me>
> Signed-off-by: Keith Busch <kbusch@kernel.org>
> ---
> include/linux/blk-mq-rdma.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/blk-mq-rdma.h b/include/linux/blk-mq-rdma.h
> index 53b58c610e767..d7ead42f1c6ad 100644
> --- a/include/linux/blk-mq-rdma.h
> +++ b/include/linux/blk-mq-rdma.h
> @@ -2,7 +2,7 @@
> #ifndef _LINUX_BLK_MQ_RDMA_H
> #define _LINUX_BLK_MQ_RDMA_H
>
> -struct blk_mq_tag_set;
> +struct blk_mq_queue_map;
> struct ib_device;
>
> void blk_mq_rdma_map_queues(struct blk_mq_queue_map *map,
BTW, afaik this is dead code because no rdma device exposes
.get_vector_affinity. I'll send a patch to remove it altogether.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] blk-mq: fix forward declaration for rdma mapping
2023-03-21 21:50 [PATCH] blk-mq: fix forward declaration for rdma mapping Keith Busch
2023-03-22 1:49 ` Chaitanya Kulkarni
2023-03-22 7:16 ` Sagi Grimberg
@ 2023-03-22 8:33 ` Daniel Wagner
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Wagner @ 2023-03-22 8:33 UTC (permalink / raw)
To: Keith Busch; +Cc: linux-block, axboe, Keith Busch, Sagi Grimberg
On Tue, Mar 21, 2023 at 02:50:01PM -0700, Keith Busch wrote:
> From: Keith Busch <kbusch@kernel.org>
>
> blk_mq_rdma_map_queues() used to take a 'blk_mq_tag_set *' parameter,
> but was changed to 'blk_mq_queue_map *'. The forward declaration needs
> to be updated so .c files won't have to include headers in a specific
> order.
>
> Fixes: e42b3867de4bd5e ("blk-mq-rdma: pass in queue map to blk_mq_rdma_map_queues")
> Cc: Sagi Grimberg <sagi@grimberg.me>
> Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-22 8:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-21 21:50 [PATCH] blk-mq: fix forward declaration for rdma mapping Keith Busch
2023-03-22 1:49 ` Chaitanya Kulkarni
2023-03-22 7:16 ` Sagi Grimberg
2023-03-22 8:33 ` Daniel Wagner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.