diff options
author | Mike Snitzer <snitzer@redhat.com> | 2018-04-03 22:54:10 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2018-04-04 18:12:39 +0200 |
commit | 5bd5e8d891c1fd2d966a7e2c26f0452d22410683 (patch) | |
tree | a26fa9657db6b9f2faa6805693db282f7bfa052c /drivers/md/dm-mpath.c | |
parent | dm: hold DM table for duration of ioctl rather than use blkdev_get (diff) | |
download | linux-5bd5e8d891c1fd2d966a7e2c26f0452d22410683.tar.xz linux-5bd5e8d891c1fd2d966a7e2c26f0452d22410683.zip |
dm: remove fmode_t argument from .prepare_ioctl hook
Use the fmode_t that is passed to dm_blk_ioctl() rather than
inconsistently (varies across targets) drop it on the floor by
overriding it with the fmode_t stored in 'struct dm_dev'.
All the persistent reservation functions weren't using the fmode_t they
got back from .prepare_ioctl so remove them.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-mpath.c')
-rw-r--r-- | drivers/md/dm-mpath.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 746dd8a75b4a..203a0419d2b0 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -1876,7 +1876,7 @@ out: } static int multipath_prepare_ioctl(struct dm_target *ti, - struct block_device **bdev, fmode_t *mode) + struct block_device **bdev) { struct multipath *m = ti->private; struct pgpath *current_pgpath; @@ -1889,7 +1889,6 @@ static int multipath_prepare_ioctl(struct dm_target *ti, if (current_pgpath) { if (!test_bit(MPATHF_QUEUE_IO, &m->flags)) { *bdev = current_pgpath->path.dev->bdev; - *mode = current_pgpath->path.dev->mode; r = 0; } else { /* pg_init has not started or completed */ |