Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp773867ybc; Sat, 16 Nov 2019 08:26:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzhGZuSMBFZ/fpG4wCxknLW8Ho/OIa4Ec44cUAV+j7r66xWAKjK3feL+Kb2HppkBYQIs6Ph X-Received: by 2002:a17:906:240c:: with SMTP id z12mr11031347eja.35.1573921611241; Sat, 16 Nov 2019 08:26:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573921611; cv=none; d=google.com; s=arc-20160816; b=tQaHVnCRwnEdSD4uUDSn7QTH/N5m+rs0rcdtfRSpf1w+i46H5fL/ykJqX1mtar9tRH 5SFk/6uZcZ8nj2d0xFbOXOsdiHi4ddmiQJS+fRSXH9eg2SQkMk0ICfL9A9JyQaffBTnJ m4LIxacVORkgT617TGQnBAM1GkbYUDZ+4jobQ7E3fL7e1UGJmmfRYZJQsTQJQpfJlwmT rfVk+DYDY+wnn4BjlsY//sW2wGreLe9KDYYL9NS9P92gmy7cJKgSaGE39e7eiYL8LfLG H6YhEY38UEbtoyTXC6Y7QNZt/fyKR5Khm9GNoSmI4hevUH7NpWoCYP1P5UvnAiSt/cuS OkWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kbLKVH4E9PZIEWaCcEeo/Y16oYF8MIC2r991Ork1Pls=; b=Gx4frC4ngTaw6uaYcL6Jkg2sutCdty/fVRLj2KA78V4fiYI+Vz/X2eOojWGBYuAy+A tz3reeTFAaEAqfZG6UcdgfQM5UuZUEiJu4HgVmcsIONim7F1EEVUAO0uc+6RJK67JNQl sHr7cqlzWvmdKlmqVMTzRsMqlKaA1SXpqSsQ5XJtzFfnTZegaPRDa+uDwPqW4AqxmDJi 41BZGH8qowAxS03DP825WjsM/Unf1IFHR96LWkm1iga4bVSY+79u3P93fCB5BgoSirHD 8dIsxhpRcMs8qnNCSAhoYCoaNvI/YS2fb2K9wdtQdfQBpZfPnzJYVQ3sQ4fyTFM3XRwR 63bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b43D3WsC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3si7826440ejr.86.2019.11.16.08.26.26; Sat, 16 Nov 2019 08:26:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b43D3WsC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729812AbfKPQYE (ORCPT + 99 others); Sat, 16 Nov 2019 11:24:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:46546 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728413AbfKPPmo (ORCPT ); Sat, 16 Nov 2019 10:42:44 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B1DB62083E; Sat, 16 Nov 2019 15:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573918964; bh=IjvQhKnlcixplGYef5OlTSVczlEn23RmU4lkJjnJ5sw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b43D3WsCCWOlYyrw//OpBinSqFzVDFq0iQfmWh5OnbxHlz5Ugagrtde4crE4faNJq MVRxaFygKE11Mf0cDdtHr5ZOJtDPXwZGxmbMMVKw/PE40HzbTjxTXyG42bewdZHIQ0 M2nA/M6qAvC03Zys7k/1/whbd7fFnI24FB+qRp4k= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Heinz Mauelshagen , Mike Snitzer , Sasha Levin Subject: [PATCH AUTOSEL 4.19 080/237] dm raid: avoid bitmap with raid4/5/6 journal device Date: Sat, 16 Nov 2019 10:38:35 -0500 Message-Id: <20191116154113.7417-80-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Heinz Mauelshagen [ Upstream commit d857ad75edf3c0066fcd920746f9dc75382b3324 ] With raid4/5/6, journal device and write intent bitmap are mutually exclusive. Signed-off-by: Heinz Mauelshagen Signed-off-by: Mike Snitzer Signed-off-by: Sasha Levin --- drivers/md/dm-raid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index b78a8a4d061ca..6c9b542882613 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -2475,7 +2475,7 @@ static int super_validate(struct raid_set *rs, struct md_rdev *rdev) } /* Enable bitmap creation for RAID levels != 0 */ - mddev->bitmap_info.offset = rt_is_raid0(rs->raid_type) ? 0 : to_sector(4096); + mddev->bitmap_info.offset = (rt_is_raid0(rs->raid_type) || rs->journal_dev.dev) ? 0 : to_sector(4096); mddev->bitmap_info.default_offset = mddev->bitmap_info.offset; if (!test_and_clear_bit(FirstUse, &rdev->flags)) { -- 2.20.1