Skip to content

Commit bde3808

Browse files
committed
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: 971888c ("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>
1 parent f05c440 commit bde3808

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/md/dm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,6 @@ static int dm_blk_report_zones(struct gendisk *disk, sector_t sector,
509509

510510
static int dm_prepare_ioctl(struct mapped_device *md, int *srcu_idx,
511511
struct block_device **bdev)
512-
__acquires(md->io_barrier)
513512
{
514513
struct dm_target *tgt;
515514
struct dm_table *map;
@@ -543,7 +542,6 @@ static int dm_prepare_ioctl(struct mapped_device *md, int *srcu_idx,
543542
}
544543

545544
static void dm_unprepare_ioctl(struct mapped_device *md, int srcu_idx)
546-
__releases(md->io_barrier)
547545
{
548546
dm_put_live_table(md, srcu_idx);
549547
}

0 commit comments

Comments
 (0)