summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2016-03-14 10:01:37 +0100
committerShaohua Li <shli@fb.com>2016-03-14 19:35:58 +0100
commitb3c95b425e0991840262dba8dd095f2682dbf848 (patch)
treebcc1e1771482f215dbbb13c129a9b6020ae65762 /drivers/md
parentmd: multipath: don't hardcopy bio in .make_request path (diff)
downloadlinux-b3c95b425e0991840262dba8dd095f2682dbf848.tar.xz
linux-b3c95b425e0991840262dba8dd095f2682dbf848.zip
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 <gqjiang@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid1.c1
1 files changed, 0 insertions, 1 deletions
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;
}