Message ID | 20220210223832.99412-6-snitzer@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | dm: improve bio-based IO accounting | expand |
On Thu, Feb 10, 2022 at 05:38:23PM -0500, Mike Snitzer wrote: > The flush_bio in question was just initialized to be empty, so there > is no way bio_has_data() will retrun true. So remove stale BUG_ON(). s/retrun/return/ Otherwise looks good: Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index cc014e56252e..1985fc3f2a95 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1255,7 +1255,6 @@ static int __send_empty_flush(struct clone_info *ci) ci->bio = &flush_bio; ci->sector_count = 0; - BUG_ON(bio_has_data(ci->bio)); while ((ti = dm_table_get_target(ci->map, target_nr++))) __send_duplicate_bios(ci, ti, ti->num_flush_bios, NULL);
The flush_bio in question was just initialized to be empty, so there is no way bio_has_data() will retrun true. So remove stale BUG_ON(). Signed-off-by: Mike Snitzer <snitzer@redhat.com> --- drivers/md/dm.c | 1 - 1 file changed, 1 deletion(-)