From: Mike Snitzer Date: Fri, 18 Feb 2022 04:40:16 +0000 (-0500) Subject: dm: remove impossible BUG_ON in __send_empty_flush X-Git-Tag: v6.6.17~7923^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b27b8ddbf37962fae8131cf595231b1be2c2b27;p=platform%2Fkernel%2Flinux-rpi.git dm: remove impossible BUG_ON in __send_empty_flush The flush_bio in question was just initialized to be empty, so there is no way bio_has_data() will return true. So remove stale BUG_ON(). Reviewed-by: Christoph Hellwig Reviewed-by: Mikulas Patocka Signed-off-by: Mike Snitzer --- diff --git a/drivers/md/dm.c b/drivers/md/dm.c index fb129fe..c7246b00 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1274,7 +1274,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);