]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dm: refactor ioctl handling
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Oct 2015 12:10:50 +0000 (14:10 +0200)
committerMike Snitzer <snitzer@redhat.com>
Sat, 31 Oct 2015 23:05:59 +0000 (19:05 -0400)
commite56f81e0b01ef4e45292d8c1e19edd4d09724e14
tree68b1faed3589d00b7a473ce856532e321f9e4908
parent47796938c46b943d157ac8a6f9ed4e3b98b83cf4
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>
drivers/md/dm-flakey.c
drivers/md/dm-linear.c
drivers/md/dm-log-writes.c
drivers/md/dm-mpath.c
drivers/md/dm-switch.c
drivers/md/dm-verity.c
drivers/md/dm.c
include/linux/device-mapper.h