diff options
author | Mike Snitzer <snitzer@redhat.com> | 2022-02-18 07:40:16 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2022-02-21 23:36:26 +0300 |
commit | 5b27b8ddbf37962fae8131cf595231b1be2c2b27 (patch) | |
tree | a72d640bd8be3defd387b96d45b44dabaf9b97e5 /drivers/md | |
parent | 90a2326edede9e801e45c24b3c71f3092b279b66 (diff) | |
download | linux-5b27b8ddbf37962fae8131cf595231b1be2c2b27.tar.xz |
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 <hch@lst.de>
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index fb129fe94a0d..c7246b00d363 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); |