Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2392846imm; Tue, 4 Sep 2018 03:48:11 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbztdNkAwKek52EUM8ZtoIcOEKwppK5rApn1xWQenBvZSRoldjyeUdAOlrgepSKLMpKKp/G X-Received: by 2002:a63:6183:: with SMTP id v125-v6mr31171303pgb.242.1536058091905; Tue, 04 Sep 2018 03:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536058091; cv=none; d=google.com; s=arc-20160816; b=UqKfblgJKIXn1UcWU6fUgs67VclG8SZGNbUz8IRw9DQrL9m2sH/EBy1bVbRSBsZBGs e5ZIOQiutGM6jeHhYALKttZ2xryOeywqB+vJEMTe02iXQigS5kN6hcS/CVD9btAmpU88 lMpMkpWKkKnP8DYZxLE602fPyB3hv/xNYdACgE6PfLOMYIzy60FQTE05fj2R5FC4gz21 dP0zrv067CQGw679XK2an2wJ33FDW7bQJVj6VYR5FI4VUWXkEjfyzqawIR234GdDbywC 1HNGPal4KWeFc/f5jFkjVQFrajn13BGEXHLHuiJfGHYqDOrxDSkX/oFlEjIYMNC9UdWb SSRw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=f6NbJvvMPr7hm3DLYs+rN0f7QhdTzq4mmEPYt7M55EU=; b=SZrG4NLj4GVV5wlacrPvlKTRv1085gVX9Zh+rIbYEf6hGQBxcTKol/UgcLQspoeuQX HVZTf/r9JEQZMVLK4RgGpI7NmxyC/KyDnz1BlWkL/rPUAEqPcYCYYA53ERYq3YdEkAUD qKiQecq1ucVhZW798ArFEqp16yPNBIOBIDzH37eyISWgw7hZosAvy6SAX/NAMfjABWIe /5ksCOvTh5OsZ7+iqYOtSNqod7S3HMxLO6tVu9KajJagQFTjEQUne1sqja0xMgOkRpG8 m+/r+L67p1mBIjQE/joxr8g4LzE806f9i54Rchhmhonvqb3X9z3iwYDqJxuk2jwrnkXx NZkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UQO3n7T7; 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 t31-v6si19806106pga.167.2018.09.04.03.47.56; Tue, 04 Sep 2018 03:48:11 -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=UQO3n7T7; 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 S1727429AbeIDPKj (ORCPT + 99 others); Tue, 4 Sep 2018 11:10:39 -0400 Received: from mail-oi0-f53.google.com ([209.85.218.53]:32968 "EHLO mail-oi0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbeIDPKj (ORCPT ); Tue, 4 Sep 2018 11:10:39 -0400 Received: by mail-oi0-f53.google.com with SMTP id 8-v6so5844566oip.0; Tue, 04 Sep 2018 03:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=f6NbJvvMPr7hm3DLYs+rN0f7QhdTzq4mmEPYt7M55EU=; b=UQO3n7T7fAnpdbRRGjaKoGO43oUwBeZ4KTidAeTXgFc6MOsba6YjqpCxHlOsMj0kot p4WqVQZdnk5CWvdRV0PF1s2cQv4o77iG5WL9ajAgIoZ5JQ5vG+kh7ZIieshmzzAYDiLS uQfaUgmEWXqlZfBsUkGB5xGw2P3R612yLf/dd0YUb2h7xET7vKELTFgvg7TSRLg5TIlT DhaxdtboxDGBwdIFLQSDodLXBxSNAski43bdZzKAIbUUippU7ezQuivixAXZBKrPOSbd szeAWpobROB19Qmeq4QoEjPnc3hkp32U+3q5JJW/9nprRTD3XEfab3Besvea1xp4VaaK eRAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=f6NbJvvMPr7hm3DLYs+rN0f7QhdTzq4mmEPYt7M55EU=; b=lnhBQdsgOx9yna4dWNixEJtUbYk8gvvS1Mtgn1NEPMYP4232xDSyo/Wvyn8UHppV+p +K9//vUf3HfDbzetBXIxSjw0/y5nh4gHA53mo6L/TphggChEO5sbjvDtA1jl00YWkZ6o WwBCQuoVm1R2XgoZ3mVV0NwTbLqbdElL4B5POSCgQIE5W2hqerxToZkbSMP32EnDkinV C2lYXxEAz5eLHKB/R/15Yu4ddoCzMZ5iD6dtmcsCQEYZSOcG1mkH87vgB/FhLlZ7Xlut vsoIUSFKXO3GkVtEPvEozwk+wVNTiS1IgAfuULjK/Yd2aMaNEM9ibWSMQ0TA5YUnDv3G K4Gw== X-Gm-Message-State: APzg51C7p1g+WCxVtLekmdNndnLdC9a9eadg6WmFmXEEGrhQEiN5IRhM ZStsgnMbBxq6u65Gfn1u2s2OPgQIrnoZkXyGDM4= X-Received: by 2002:aca:bec2:: with SMTP id o185-v6mr22025769oif.22.1536057965469; Tue, 04 Sep 2018 03:46:05 -0700 (PDT) MIME-Version: 1.0 References: <20180904075347.GH11854@BitWizard.nl> <20180904092938.GJ11854@BitWizard.nl> In-Reply-To: <20180904092938.GJ11854@BitWizard.nl> From: =?UTF-8?B?54Sm5pmT5Yas?= Date: Tue, 4 Sep 2018 18:45:54 +0800 Message-ID: Subject: Re: POSIX violation by writeback error To: R.E.Wolff@bitwizard.nl Cc: jlayton@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 4, 2018 at 5:29 PM Rogier Wolff wrote: > > On Tue, Sep 04, 2018 at 04:58:59PM +0800, =E7=84=A6=E6=99=93=E5=86=AC wro= te: > > > As for suggestion, maybe the error flag of inode/mapping, or the entire= inode > > should not be evicted if there was an error. That hopefully won't take = much > > memory. On extreme conditions, where too much error inode requires stay= ing > > in memory, maybe we should panic rather then spread the error. > > Again you are hoping it will fit in memory. In an extreme case it > won't fit in memory. Tyring to come up with heuristics about when to > remember and when to forget such things from the past is very > difficult. The key point is to report errors, not to hide it from user space to prevent further errors/damage, and that is also what POSIX wants. And, storing inode/mapping/error_flag in memory is quite different from storing the data itself. They are tiny and only increase per inode rather than per error page. > > Think of my comments as: "it's harder than you think", not as "can't > be done". > > Roger. > > -- > ** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 *= * > ** Delftechpark 26 2628 XH Delft, The Netherlands. KVK: 27239233 *= * > *-- BitWizard writes Linux device drivers for any device you may have! --= * > The plan was simple, like my brother-in-law Phil. But unlike > Phil, this plan just might work.