-
- Downloads
dm: refactor ioctl handling
This moves the call to blkdev_ioctl and the argument checking to DM core code, and only leaves a callout to find the block device to operate on in the targets. This simplifies the code and allows us to pass through ioctl-like command using other methods in the next patch. Also split out a helper around calling the prepare_ioctl method that will be reused for persistent reservation handling. Signed-off-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
Mike Snitzer <snitzer@redhat.com>
Showing
- drivers/md/dm-flakey.c 8 additions, 8 deletionsdrivers/md/dm-flakey.c
- drivers/md/dm-linear.c 7 additions, 7 deletionsdrivers/md/dm-linear.c
- drivers/md/dm-log-writes.c 6 additions, 7 deletionsdrivers/md/dm-log-writes.c
- drivers/md/dm-mpath.c 12 additions, 17 deletionsdrivers/md/dm-mpath.c
- drivers/md/dm-switch.c 9 additions, 12 deletionsdrivers/md/dm-switch.c
- drivers/md/dm-verity.c 7 additions, 8 deletionsdrivers/md/dm-verity.c
- drivers/md/dm.c 42 additions, 13 deletionsdrivers/md/dm.c
- include/linux/device-mapper.h 3 additions, 3 deletionsinclude/linux/device-mapper.h
Loading
Please register or sign in to comment