dm: don't grab target io reference in dm_zone_map_bio
authorMing Lei <ming.lei@redhat.com>
Tue, 12 Apr 2022 08:56:14 +0000 (16:56 +0800)
committerMike Snitzer <snitzer@kernel.org>
Thu, 5 May 2022 21:31:36 +0000 (17:31 -0400)
commit2e803cd99ba8b7a84be155c1d5ee28d363fdbe44
tree2255fec7acdf7812b8b30c16928afca2ac4286a7
parent7dd76d1feec70a23e1de2b55c0c2a9c592fa8423
dm: don't grab target io reference in dm_zone_map_bio

dm_zone_map_bio() is only called from __map_bio in which the io's
reference is grabbed already, and the reference won't be released
until the bio is submitted, so not necessary to do it dm_zone_map_bio
any more.

Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-core.h
drivers/md/dm-zone.c
drivers/md/dm.c