Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2214921imm; Mon, 3 Sep 2018 23:33:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYANSRPtql8ZAeMMbswG48QdwA99PhtVwmzeaQHw8GM+d+eKotbA6j/OPCA90SNZox+Ur/r X-Received: by 2002:a17:902:163:: with SMTP id 90-v6mr31920017plb.322.1536042839223; Mon, 03 Sep 2018 23:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536042839; cv=none; d=google.com; s=arc-20160816; b=nZiK0jbjM43UgeCgwANEJpp9Mrlyr/N0cobQqxSmwEnkZl863cjgw9WYfykmxoIsv8 AYMIo+46mJ0rRpNQ9eBfN90jukEJ1MKWeXPb4nCI06LdxTp2ZuVHr+uhoKTwOH4WVIZY LpBSw3U75MgvGQMHhtFpXk4mZxzHA2qKBbRR9RnGV0n0F7h0659aX/iSodWGgCkdWiMq HQwuWGgqyxt0cpMfGZ8jlrWUlrxmLhF1U76MJXJCL7wuBgBUelJP0Cs7ixxSjSv0YIjU dTpVfcOw5beG/10O6kPUQAnCiFvmHczAc+TuBOpEwyjPrL6lv7SFgm/OFTWX2Vbvj8q3 rDUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature:arc-authentication-results; bh=CXLQcA1iSpuAyGmdyCZtcimQX46Ng7zpcg4/PQO9oOw=; b=JAUVs5ow5ZO1qp3nfGyV8K6/7UmmBpRFRyr0uZ2JpQGjVExGNWy+jD30r8nfH1pOKs I+WcSZnptAbmD6D/wb9tNRUD6jM+4jOw4rbayFS0Fl95mPD5xSw5Gtn+Y5iC0bi5g8HR gZv2yg/hIivLkaOUr+Dw2XyMYD9w7hOqNSn6z906h7XQD6S6l1RUjNifSTj5/Lr+7yjU ZrMNo+Wb163ja9raGtzGniV9sGmyfqM44ByZ4umRb5heJ/X9iuBYC3Pjs5W5joLKzchz bmiLGbErktY8l3yuqg2zQqO6PGOzdGytoroEf9W9TgCNHiH9S4P1of1WDZEFTTsqcbC7 FGoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CLG1R+8X; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7-v6si19491726pgw.207.2018.09.03.23.33.43; Mon, 03 Sep 2018 23:33:59 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CLG1R+8X; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727483AbeIDK4T (ORCPT + 99 others); Tue, 4 Sep 2018 06:56:19 -0400 Received: from mail-oi0-f44.google.com ([209.85.218.44]:45136 "EHLO mail-oi0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726011AbeIDK4S (ORCPT ); Tue, 4 Sep 2018 06:56:18 -0400 Received: by mail-oi0-f44.google.com with SMTP id t68-v6so4628170oie.12; Mon, 03 Sep 2018 23:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=CXLQcA1iSpuAyGmdyCZtcimQX46Ng7zpcg4/PQO9oOw=; b=CLG1R+8Xwp8RbpVWtQEV0jjCEme/JbuD6/BJdcTkL5PMntqBzfqJB01BD9Y3yJ0gS7 rqe7bkF4Xn9c5t25tuh0gca1uFIR5oEoaO1pIiHkurxX2R/mtdpYsa75YES+4p0jXrlG 1D89j4AjJ05ynwB94Mj7d7HW7/LVFmdTePeVuGZjaY5fRu3+G540Lbn8nhN4IN5lbBGh XZAMwppPkMdydQHyM4h4c4jhs+u2GHnteaiGCohDMV9lmuHX6zpkWpg8MsZ64tCMZLL6 Oozin07gkooYj5VmnhYfInUev3fLfqCZzuh04g/mULLOJXq3gG9sJyMERnRKumO3vKF4 64qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=CXLQcA1iSpuAyGmdyCZtcimQX46Ng7zpcg4/PQO9oOw=; b=NA5cHZvJh3Zoy+5SUGEFac/uxzqh8DmB7HeJQpGb5TtvitH+mQ/lGCL9dKizjgky/T ZcXeiGZ0LzAjs7m+vJKowgafXBHLN4ukjsrHk3OdPlO3FW01MINBiGlnDYeNTz+dwGXl IfagvLgq3ApsXZ2ylppXP4tNb3Ajnw8pD6fTQH6dZASZAktkIUb6F+IUVvl2bKRJlSW7 CRlAab32tZMrxU8946QkIh8HR+0WaMdpkj0/Cx1eJ6oi0xrSJPSkDl7/SvWM94eEEPrq VfK0VKrEDryBfQnp9nVpp8ZwX+OoA1F73sfwGMORTjZXaE7YtoTQD0Je7soRcg3H75/l eQRg== X-Gm-Message-State: APzg51DvZdJTwLycr0k3DF5KaBlGjV+RXf9Ei5fvvFaWb4IQ4VNMES/b iRAInjKrtjfmhfioqRkNnFaRZpNYgnv6jsAb2xxWSsUWNhw= X-Received: by 2002:aca:d0d7:: with SMTP id j84-v6mr24223664oiy.37.1536042758405; Mon, 03 Sep 2018 23:32:38 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?54Sm5pmT5Yas?= Date: Tue, 4 Sep 2018 14:32:28 +0800 Message-ID: Subject: POSIX violation by writeback error To: jlayton@redhat.com, linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, After reading several writeback error handling articles from LWN, I begin to be upset about writeback error handling. Jlayton's patch is simple but wonderful idea towards correct error reporting. It seems one crucial thing is still here to be fixed. Does anyone have some idea? The crucial thing may be that a read() after a successful open()-write()-close() may return old data. That may happen where an async writeback error occurs after close() and the inode/mapping get evicted before read(). That violate POSIX as POSIX requires that a read() that can be proved to occur after a write() has returned will return the new data. Regards, Trol