diff mbox series

[V3,01/10] blk-mq: rename blk-mq-cpumap.c as blk-mq-map.c

Message ID 20210709081005.421340-2-ming.lei@redhat.com
State New
Headers show
Series [V3,01/10] blk-mq: rename blk-mq-cpumap.c as blk-mq-map.c | expand

Commit Message

Ming Lei July 9, 2021, 8:09 a.m. UTC
Firstly the name of cpumap isn't very useful because all kinds of map
helpers(pci, rdma, virtio) are for mapping cpu(s) to hw queue.

Secondly prepare for moving physical device related mapping into its
own subsystems, and we will put all map related functions/helpers into
this renamed source file.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
---
 block/Makefile                          | 2 +-
 block/{blk-mq-cpumap.c => blk-mq-map.c} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename block/{blk-mq-cpumap.c => blk-mq-map.c} (100%)

Comments

Christoph Hellwig July 12, 2021, 7:28 a.m. UTC | #1
On Fri, Jul 09, 2021 at 04:09:56PM +0800, Ming Lei wrote:
> Firstly the name of cpumap isn't very useful because all kinds of map

> helpers(pci, rdma, virtio) are for mapping cpu(s) to hw queue.

> 

> Secondly prepare for moving physical device related mapping into its

> own subsystems, and we will put all map related functions/helpers into

> this renamed source file.

> 

> Signed-off-by: Ming Lei <ming.lei@redhat.com>


I don't really see much of a point in this - we still create the cpu
maps, and if there is more code here that doesn't matter much, does it?
diff mbox series

Patch

diff --git a/block/Makefile b/block/Makefile
index bfbe4e13ca1e..0f31c7e8a475 100644
--- a/block/Makefile
+++ b/block/Makefile
@@ -7,7 +7,7 @@  obj-$(CONFIG_BLOCK) := bio.o elevator.o blk-core.o blk-sysfs.o \
 			blk-flush.o blk-settings.o blk-ioc.o blk-map.o \
 			blk-exec.o blk-merge.o blk-timeout.o \
 			blk-lib.o blk-mq.o blk-mq-tag.o blk-stat.o \
-			blk-mq-sysfs.o blk-mq-cpumap.o blk-mq-sched.o ioctl.o \
+			blk-mq-sysfs.o blk-mq-map.o blk-mq-sched.o ioctl.o \
 			genhd.o ioprio.o badblocks.o partitions/ blk-rq-qos.o \
 			disk-events.o
 
diff --git a/block/blk-mq-cpumap.c b/block/blk-mq-map.c
similarity index 100%
rename from block/blk-mq-cpumap.c
rename to block/blk-mq-map.c