From b3c95b425e0991840262dba8dd095f2682dbf848 Mon Sep 17 00:00:00 2001 From: Guoqing Jiang Date: Mon, 14 Mar 2016 17:01:37 +0800 Subject: [PATCH] md/raid1: remove unnecessary BUG_ON Since bitmap_start_sync will not return until sync_blocks is not less than PAGE_SIZE>>9, so the BUG_ON is not needed anymore. Signed-off-by: Guoqing Jiang Signed-off-by: Shaohua Li --- drivers/md/raid1.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 4e3843f7d245..d1d5363b17f4 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -2695,7 +2695,6 @@ static sector_t raid1_sync_request(struct mddev *mddev, sector_t sector_nr, !conf->fullsync && !test_bit(MD_RECOVERY_REQUESTED, &mddev->recovery)) break; - BUG_ON(sync_blocks < (PAGE_SIZE>>9)); if ((len >> 9) > sync_blocks) len = sync_blocks<<9; } -- 2.20.1