Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2016491imu; Tue, 6 Nov 2018 07:51:12 -0800 (PST) X-Google-Smtp-Source: AJdET5cAIroyPMa/+lpmVvEEmAF6/bF3S2DxI6GUnj0sEri2OAyflE0zoullkAjkb+F+SMKSzFtu X-Received: by 2002:a17:902:b206:: with SMTP id t6-v6mr27590970plr.228.1541519472477; Tue, 06 Nov 2018 07:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541519472; cv=none; d=google.com; s=arc-20160816; b=BgqqipnVXYLoKzCLYDR1uoO8vUVC9eFvPGN/7uqLTW/ST1WU9i/MwPEK1G8uIt3EIW z4GLkX9OkLj1Tn/sj30+9Xp8DlNbicPwN4ba/UynPvh/2ZaBhRwrwySVSIB6h9SdBo4A 56hvMGSURVmNk6UgxyR1SOgpenmCxLoPuC2NcYlh/r3nfKSzB08Q4BH/yWlwvb0GXoxR 4gZOXsIupISo5M4u+j/emRvm4bD2DHmPtNzKaYBMpO0Ibr8ly5NaIGY8fbBU+9N6fgki PGJkJvslPzXS5EcuOkI7XdmFfWiD8hjh6IDHnDLbpctvUJGhAeEotflEvhcERP/qswDS Gqpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=C5i3vdqy//8ixjHh0h2LUNLXazSNndrlJ2atSkyERe0=; b=Kvunnpketna/0RWU4ewuxT7wT1i4nM2WVk9Fj2RnLeL8qaoxJAXIcj1QgpcTKH27v2 nXqRQo09SF+5vIQZc/UPNQvP/eR2lpZZPTDwb3e4vR0kY/G8sk2zaiNrTuE+dw4wfcTC To1icDP3AJzybZcGH3SkbA/+AuCJUSzrCJYkVtS0ZAQ37Tj957niL1c8E46vmDLdQqQ3 Ci8o7bntjAbgOqkT42iZkYdxESzm9Or4xyFp2pvuvK8FmKSXCWfK8TVWeNOEDF8nyuT0 dGTB5aOHAAiMlUK08nHq/7CvnVLVL5CkHwGc0GPabXOCGBX8E9hUoji2LnI5Qb45gxwq KhIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Jw4cyCe8; 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 y17-v6si48852390pfb.196.2018.11.06.07.50.57; Tue, 06 Nov 2018 07:51:12 -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=Jw4cyCe8; 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 S2388959AbeKGBQE (ORCPT + 99 others); Tue, 6 Nov 2018 20:16:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:33282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387905AbeKGBQE (ORCPT ); Tue, 6 Nov 2018 20:16:04 -0500 Received: from localhost (mobile-107-77-164-88.mobile.att.net [107.77.164.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3B2C92085B; Tue, 6 Nov 2018 15:50:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541519414; bh=YVC/luPMLY71W7yKEzwQ3tOZSW6tJyF/FPit6g/6YOE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Jw4cyCe854I9xnHEgWHo4I1PKuulPr4M497PyupluV5jojcXe0vHraMcyPXxHtnvK 0tM1N1YZT1arrxUBy0R3DJMzXaYERB3lnc30K1HtV+uqbsKN8lQTiesHW/v4IecY/V uvzhI6m5yL8UznOK4F8ZobH9DK7Kfony+yTNYHSE= Date: Tue, 6 Nov 2018 10:50:12 -0500 From: Sasha Levin To: Jack Wang Cc: stable@vger.kernel.org, linux-kernel@vger.kernel.org, shli@fb.com Subject: Re: [PATCH AUTOSEL 4.19 118/146] MD: fix invalid stored role for a disk Message-ID: <20181106155012.GC151445@sasha-vm> References: <20181031230541.28822-1-sashal@kernel.org> <20181031230541.28822-118-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 06, 2018 at 08:37:32AM +0100, Jack Wang wrote: >Sasha Levin 于2018年11月1日周四 上午12:45写道: >> >> From: Shaohua Li >> >> [ Upstream commit d595567dc4f0c1d90685ec1e2e296e2cad2643ac ] >> >> If we change the number of array's device after device is removed from array, >> then add the device back to array, we can see that device is added as active >> role instead of spare which we expected. >> >> Please see the below link for details: >> https://marc.info/?l=linux-raid&m=153736982015076&w=2 >> >> This is caused by that we prefer to use device's previous role which is >> recorded by saved_raid_disk, but we should respect the new number of >> conf->raid_disks since it could be changed after device is removed. >> >> Reported-by: Gioh Kim >> Tested-by: Gioh Kim >> Acked-by: Guoqing Jiang 9e753ba9b9b405e3902d9f08aec5f2ea58a0c317 >> Signed-off-by: Shaohua Li >> Signed-off-by: Sasha Levin >Hi Sasha, > >This patch breaks linear hotadd please also include commit >9e753ba9b9b405e3902d9f08aec5f2ea58a0c317 >MD: fix invalid stored role for a disk - try2 I'll queue it up, thanks Jack! -- Thanks, Sasha