summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2016-02-18 22:13:51 +0100
committerMike Snitzer <snitzer@redhat.com>2016-02-22 02:27:51 +0100
commit956a4025808df4abfe2fe25a11feb4c8f33fc336 (patch)
tree986069505785621f1dc0925ba363e5fc13e19c19 /block
parentdm: do not return target from dm_get_live_table_for_ioctl() (diff)
downloadlinux-956a4025808df4abfe2fe25a11feb4c8f33fc336.tar.xz
linux-956a4025808df4abfe2fe25a11feb4c8f33fc336.zip
dm: fix sparse "unexpected unlock" warnings in ioctl code
Rename dm_get_live_table_for_ioctl to dm_grab_bdev_for_ioctl and have it do the dm_{get,put}_live_table() rather than split those operations. The dm_grab_bdev_for_ioctl() callers only care about the block_device associated with a singleton DM device so there isn't any need to retain a reference to the live DM table. It is sufficient to: 1) dm_get_live_table() 2) bdgrab() the bdev associated with the singleton table's target 3) dm_put_live_table() 4) bdput() the bdev Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions