diff options
author | Mike Snitzer <snitzer@redhat.com> | 2020-12-04 21:25:18 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-12-04 21:25:18 +0100 |
commit | bde3808bc8c2741ad3d804f84720409aee0c2972 (patch) | |
tree | 8d3a08b141ff6f303ab8ecf3d2bdabd21140a70c /drivers/md/dm.c | |
parent | dm: fix double RCU unlock in dm_dax_zero_page_range() error path (diff) | |
download | linux-bde3808bc8c2741ad3d804f84720409aee0c2972.tar.xz linux-bde3808bc8c2741ad3d804f84720409aee0c2972.zip |
dm: remove invalid sparse __acquires and __releases annotations
Fixes sparse warnings:
drivers/md/dm.c:508:12: warning: context imbalance in 'dm_prepare_ioctl' - wrong count at exit
drivers/md/dm.c:543:13: warning: context imbalance in 'dm_unprepare_ioctl' - wrong count at exit
Fixes: 971888c46993f ("dm: hold DM table for duration of ioctl rather than use blkdev_get")
Cc: stable@vger.kernel.org
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/md/dm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 45c623ff931a..4e0cbfe3f14d 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -509,7 +509,6 @@ out: static int dm_prepare_ioctl(struct mapped_device *md, int *srcu_idx, struct block_device **bdev) - __acquires(md->io_barrier) { struct dm_target *tgt; struct dm_table *map; @@ -543,7 +542,6 @@ retry: } static void dm_unprepare_ioctl(struct mapped_device *md, int srcu_idx) - __releases(md->io_barrier) { dm_put_live_table(md, srcu_idx); } |