From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49172C433EF for ; Mon, 11 Oct 2021 09:42:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 30E9E60EBB for ; Mon, 11 Oct 2021 09:42:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235597AbhJKJoz (ORCPT ); Mon, 11 Oct 2021 05:44:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235522AbhJKJos (ORCPT ); Mon, 11 Oct 2021 05:44:48 -0400 Received: from mail-vs1-xe2e.google.com (mail-vs1-xe2e.google.com [IPv6:2607:f8b0:4864:20::e2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48AF5C06161C for ; Mon, 11 Oct 2021 02:42:48 -0700 (PDT) Received: by mail-vs1-xe2e.google.com with SMTP id j22so3290430vsl.5 for ; Mon, 11 Oct 2021 02:42:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smartx-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=elyOSwXUmSlTdb1/CJiGdQ6bWf9yMdIVeAywc3qURWQ=; b=wXcBHZKBoqVbo1hwNG+hikkfLkaxFwTo24yKdtKlLZNxYqDDjDtZAWGDErzVBSEs78 GvWp5LDT+GM5DI4XnDDbgcZzXfuvyvMokDtHEUvfseBpueCpHy9F0JzcdGAnE8nP5fzH mjOfuKQVqwVVtfZgEtGm7Y4oc4J7VXCaFqgnj1mQmlG0a9KInuTHVvp4Yov0Gz4uS3yZ ngwh6MfllMT7cKDgJX19KmgREIynarYDLsElbPtFyXuDYjPp3kxaXckubeUKyf+V5YQx dUcUgQF2kZNVaq8HrEEZByv5qEkMgfe01edsSIq1QSLINHYt4GfXEZv0KkkK6ZQpHrTR nGHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=elyOSwXUmSlTdb1/CJiGdQ6bWf9yMdIVeAywc3qURWQ=; b=pqn8uMNCMW4D9LJ48VsUHZYSGf/wjcDv7i/ggnaU9wZwUD/EN75oO0usRZGdmP/83a nPq1KE41Z9fX3X6VORpDKDhf7bvbSED4hgYo0T/XtvCWTTjcOhspSBQDFuCGZwfsUQhP d/u7s/qWNYwYhehpn1vh4XVJ6FFvrSbKdW2nxcvrWeuyD0wuWIaC6Hj19gSBnqTatiPV YejITZ7s4argnw74rjX2mBqfwfkOcEE9iKJYYwD/QcZkYfE7QMkGHfwU6Ifch53giHch Yi1EfEM9LqwCGHO7xHaDCvl203um6MWmYRFwJsNhjS5g/yHQhpFPjYbZICLrqJEb/IGi fCoQ== X-Gm-Message-State: AOAM532CSjAAVGy869XKm+JGtpUiwq96AH1L51g4ujwmpM6YhkDV0QsI HG9LTW4DwGNecY8p7YBI3QDTfakEiHYi8cTDl0OUYw== X-Google-Smtp-Source: ABdhPJzrQ6F83mHYri4ahs7UbpwEco4J1CLexA6Bt25RLqrWz1tpazLW7QI6Kf0/0jyLoNpVqjlnLoad+TWIHderEgA= X-Received: by 2002:a05:6102:222b:: with SMTP id d11mr21378183vsb.20.1633945367425; Mon, 11 Oct 2021 02:42:47 -0700 (PDT) MIME-Version: 1.0 References: <20211008032231.1143467-1-fengli@smartx.com> In-Reply-To: From: Li Feng Date: Mon, 11 Oct 2021 17:42:35 +0800 Message-ID: Subject: Re: [PATCH RESEND] md: allow to set the fail_fast on RAID1/RAID10 To: Xiao Ni Cc: Song Liu , "open list:SOFTWARE RAID (Multiple Disks) SUPPORT" , open list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Xiao Ni =E4=BA=8E2021=E5=B9=B410=E6=9C=8811=E6=97=A5=E5=91= =A8=E4=B8=80 =E4=B8=8B=E5=8D=883:49=E5=86=99=E9=81=93=EF=BC=9A > > Hi all > > Now the per device sysfs interface file state can change failfast. Do > we need a new file for failfast? > > I did a test. The steps are: > > mdadm -CR /dev/md0 -l1 -n2 /dev/sdb /dev/sdc --assume-clean > cd /sys/block/md0/md/dev-sdb > echo failfast > state > cat state > in_sync,failfast This works, will it be persisted to disk? > > Best Regards > Xiao > > On Sat, Oct 9, 2021 at 7:36 AM Song Liu wrote: > > > > On Thu, Oct 7, 2021 at 8:22 PM Li Feng wrote: > > > > > > When the running RAID1/RAID10 need to be set with the fail_fast flag, > > > we have to remove each device from RAID and re-add it again with the > > > --fail_fast flag. > > > > > > Export the fail_fast flag to the userspace to support the read and > > > write. > > > > > > Signed-off-by: Li Feng > > > > Thanks for the patch! I applied it to md-next, with some changes in the > > commit log. > > > > Thanks, > > Song > > >