Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3489624ybd; Fri, 28 Jun 2019 09:28:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzjr6Tg7TMp56wdK+dniwiZjm8aXiD8FbG7EZHQwBQTrn3dy0TjouHapqJ/OgCowFvHMj7n X-Received: by 2002:a65:60cc:: with SMTP id r12mr3547640pgv.333.1561739305689; Fri, 28 Jun 2019 09:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561739305; cv=none; d=google.com; s=arc-20160816; b=zB2bSTHrsgd1EQLZymoucPcKmu2y0HRaZZMGuSMmy0M3wiEHrCjhtoBZiuITUXPltN uPvwUuVPYvVimIh0V7hhYM8zge6umT6bP370dkySw+l5AJ+pbS+wdUgyu6MxY+Ei32J3 fOHP9bm466lDKm+3sKrVpeRmP+8bdCUiP/pRgIWjvxiXrQ35JHAKCYyFd3HO1VHWdOA5 aqnzZpj9+94UljWMAdamFjqTAEVSgI0Jm4rzwtnp9pkznjJcEIjFfSLa7xfFKZxWjvoX 7cQ9naogi0lXaGLpeo/srtUGFbAPatN4iO18VCAkXBhdEn37sMuaDg2cfh/TXIoNnyCP FDJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=x7GKy4ZGeeaWvcoZlAIz7dIaLj5uT2nj8YmvuL+VMJo=; b=hZx2P2/2C8XYoDjwR58dMQ2vmDloLjIM3lsnoZj5kM2j4nVgEqaurzuIWxLlSPXy09 mCDdRfutZyLfe6eJGBPCiWMvU8vmNWLd8GxVVZaF/iulhP36gTrKMr0kPICcGXREvQd8 64Htg6CZz6PjgWJvXjZ9hC+0qYDxZlYGZb9g2MY4Mi5Xa1VX/9t5WZ6oQQf8rQqpdoi1 fwd/WBctDSmUbF7tQsc9P22SwayYfprtq+dqnqeeNmOH3L0WWuWRujfUqQ+m8pPgCClS Iw0j26n80gxiWXOZKDbU7MSaKZj9JFK3Uus9yNdjktn9Pjhu7I1SUbcUEzjV7vlWfs1P E6bA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v13si2873788pfe.217.2019.06.28.09.28.09; Fri, 28 Jun 2019 09:28:25 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726887AbfF1Q17 (ORCPT + 99 others); Fri, 28 Jun 2019 12:27:59 -0400 Received: from mail.parknet.co.jp ([210.171.160.6]:53008 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726772AbfF1Q16 (ORCPT ); Fri, 28 Jun 2019 12:27:58 -0400 Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id BBD6D1B457B; Sat, 29 Jun 2019 01:27:56 +0900 (JST) Received: from devron.myhome.or.jp (foobar@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.15.2/8.15.2/Debian-12) with ESMTPS id x5SGRtVw032135 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 29 Jun 2019 01:27:56 +0900 Received: from devron.myhome.or.jp (foobar@localhost [127.0.0.1]) by devron.myhome.or.jp (8.15.2/8.15.2/Debian-12) with ESMTPS id x5SGRtdk014802 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 29 Jun 2019 01:27:55 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.15.2/8.15.2/Submit) id x5SGRtXF014801; Sat, 29 Jun 2019 01:27:55 +0900 From: OGAWA Hirofumi To: Christoph Hellwig Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] fat: Add nobarrier to workaround the strange behavior of device References: <871rzdrdxw.fsf@mail.parknet.co.jp> <20190628143216.GA538@infradead.org> <87pnmxpx9p.fsf@mail.parknet.co.jp> <20190628160230.GA24232@infradead.org> Date: Sat, 29 Jun 2019 01:27:55 +0900 In-Reply-To: <20190628160230.GA24232@infradead.org> (Christoph Hellwig's message of "Fri, 28 Jun 2019 09:02:30 -0700") Message-ID: <87ftntptdg.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Christoph Hellwig writes: > On Sat, Jun 29, 2019 at 12:03:46AM +0900, OGAWA Hirofumi wrote: >> I see, sounds like good though. Does it work for all stable versions? >> Can it disable only flush command without other effect? And it would be >> better to be normal user controllable easily. > > The option was added in 2.6.17, so it's been around forever. But > no, it obviously is not user exposed as using it on a normal drive > can lead to data loss. I see. It sounds like good as long term solution though (if no effect other than disabling flush command), it may need some monitor daemon and detect the device, and apply user policy as root. (BTW, I meant, workaround is normal user controllable with config by root or such) I think, it may not be good as short term solution for especially stable users. If there is no better short term solution, I would like to still push this patch as short term workaround. Thanks. -- OGAWA Hirofumi