dm: support non power of two target max_io_len
Remove the restriction that limits a target's specified maximum incoming I/O size to be a power of 2. Rename this setting from 'split_io' to the less-ambiguous 'max_io_len'. Change it from sector_t to uint32_t, which is plenty big enough, and introduce a wrapper function dm_set_target_max_io_len() to set it. Use sector_div() to process it now that it is not necessarily a power of 2. Signed-off-by:Mike Snitzer <snitzer@redhat.com> Signed-off-by:
Alasdair G Kergon <agk@redhat.com>
Showing
- drivers/md/dm-raid.c 5 additions, 6 deletionsdrivers/md/dm-raid.c
- drivers/md/dm-raid1.c 5 additions, 1 deletiondrivers/md/dm-raid1.c
- drivers/md/dm-snap.c 15 additions, 12 deletionsdrivers/md/dm-snap.c
- drivers/md/dm-stripe.c 4 additions, 1 deletiondrivers/md/dm-stripe.c
- drivers/md/dm-thin.c 4 additions, 1 deletiondrivers/md/dm-thin.c
- drivers/md/dm.c 27 additions, 8 deletionsdrivers/md/dm.c
- include/linux/device-mapper.h 7 additions, 2 deletionsinclude/linux/device-mapper.h
- include/linux/dm-ioctl.h 2 additions, 2 deletionsinclude/linux/dm-ioctl.h
Loading
Please register or sign in to comment