[dm-devel] [PATCH] dm-mpath: use DM_MAPIO_SUBMITTED instead of 0 in process_queued_bios

2018-03-12 Thread Wang Sheng-Hui
Use the macro DM_MAPIO_SUBMITTED instead of magic number 0 in dm-mpath.c/process_queued_bios. Signed-off-by: Wang Sheng-Hui --- drivers/md/dm-mpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 7d3e572072f5

[dm-devel] confusion about multipath_prepare_ioctl

2018-03-06 Thread Wang Sheng-Hui
Dear, Sorry to trouble you. I noticed some code in dm-*.c like: " static int multipath_prepare_ioctl(struct dm_target *ti, struct block_device **bdev, fmode_t *mode) { ... /* * Only pass ioctls through if the device sizes match exactly. */ if (!r

[dm-devel] [PATCH] dm-target.c: remove unused macro DM_MOD_NAME_SIZE

2018-02-05 Thread Wang Sheng-Hui
DM_MOD_NAME_SIZE is not used in the kernel src. Remove the macro define. Signed-off-by: Wang Sheng-Hui --- drivers/md/dm-target.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/md/dm-target.c b/drivers/md/dm-target.c index c0d7e60820c4..314d17ca6466 100644 --- a/drivers/md/dm