Unverified Commit ecedbab0 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 5a9bf845 93f5bea7
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -587,7 +587,7 @@ static void start_io_acct(struct dm_io *io)
	struct mapped_device *md = io->md;
	struct mapped_device *md = io->md;
	struct bio *bio = io->orig_bio;
	struct bio *bio = io->orig_bio;


	io->start_time = bio_start_io_acct(bio);
	io->start_time = bio_start_precise_io_acct(bio);
	if (unlikely(dm_stats_used(&md->stats)))
	if (unlikely(dm_stats_used(&md->stats)))
		dm_stats_account_io(&md->stats, bio_data_dir(bio),
		dm_stats_account_io(&md->stats, bio_data_dir(bio),
				    bio->bi_iter.bi_sector, bio_sectors(bio),
				    bio->bi_iter.bi_sector, bio_sectors(bio),
@@ -606,7 +606,7 @@ static void end_io_acct(struct mapped_device *md, struct bio *bio,


	smp_wmb();
	smp_wmb();


	bio_end_io_acct(bio, start_time);
	bio_end_precise_io_acct(bio, start_time);


	/* nudge anyone waiting on suspend queue */
	/* nudge anyone waiting on suspend queue */
	if (unlikely(wq_has_sleeper(&md->wait)))
	if (unlikely(wq_has_sleeper(&md->wait)))