diff options
author | Ming Lei <ming.lei@redhat.com> | 2022-04-12 16:56:14 +0800 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2022-05-05 17:31:36 -0400 |
commit | 2e803cd99ba8b7a84be155c1d5ee28d363fdbe44 (patch) | |
tree | 2255fec7acdf7812b8b30c16928afca2ac4286a7 /drivers/md/dm-core.h | |
parent | 7dd76d1feec70a23e1de2b55c0c2a9c592fa8423 (diff) | |
download | lwn-2e803cd99ba8b7a84be155c1d5ee28d363fdbe44.tar.gz lwn-2e803cd99ba8b7a84be155c1d5ee28d363fdbe44.zip |
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>
Diffstat (limited to 'drivers/md/dm-core.h')
-rw-r--r-- | drivers/md/dm-core.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/md/dm-core.h b/drivers/md/dm-core.h index 37ddedf61249..d2d188c9b632 100644 --- a/drivers/md/dm-core.h +++ b/drivers/md/dm-core.h @@ -296,13 +296,6 @@ static inline void dm_io_set_flag(struct dm_io *io, unsigned int bit) io->flags |= (1U << bit); } -static inline void dm_io_inc_pending(struct dm_io *io) -{ - atomic_inc(&io->io_count); -} - -void dm_io_dec_pending(struct dm_io *io, blk_status_t error); - static inline struct completion *dm_get_completion_from_kobject(struct kobject *kobj) { return &container_of(kobj, struct dm_kobject_holder, kobj)->completion; |