Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1121271pxk; Mon, 31 Aug 2020 10:18:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2UZPFPwDmAZnQ7+rSCY9MmecYODk6NVCW0vglNkyrL38bL8lHPvebG6UhK6p7AziFQMyk X-Received: by 2002:a17:906:6ad8:: with SMTP id q24mr1949796ejs.192.1598894284414; Mon, 31 Aug 2020 10:18:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598894284; cv=none; d=google.com; s=arc-20160816; b=rnmipkgoNfVvnxlJ8ZL0owTc+7lCZ+oLjz0XsFbfLeNpNeKajD1Y6yYMzUS2Dk+Nod dqG3xr0dQTEG3oLGweAOGVxJ+sx/7H/oR+KUpoYZGL+wSwjY/9wLcl7PtUkEkp2iQtiK +9UbwzkbrszfnGKLVhJBEoV72RWu4rCLitRfJ6rO5MNmtQAY0KcECq+8VY9BoSdpCh0p DwHgVPvcWj35yV4mGl4Ky+OANfYPF7gwbZLHBl0Ko6YE7c8yk9uUs/1y0R8Pyw7YA3Wj ItyRGE6StWSsQhGIW1r7IUbYrHh1R+P5HwAzzPmc4We0A0o6Sfxqfci99WE/FUFiTryZ pJsg== 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=PUXeuy4Z+xfAIsNJSKJbZ8LUVVFChA9NKbFt1LM/gf8=; b=zhNCuQekQjba4YAlPDdXJr23MZWxsi9lvP6fS5xZVR9wCty1YUkAsBAjvMzFEx2L8T p73+SdXYOUYU/T1xRzfze3Zw6ZT5SX1JZdYgPOaW4KNuyRblgPnqIWvmChb1x+4zMY+k 3jgi56X160KyU+HGgdwUfi1a19HvMlaVR/3ceo1h2nOD9J5SlaLlLcxs57ZVtkflJtvU Edju9BJWGgUqx8BLnspcIk6rXxB+6og2gM0gUT3tXc72ONT9On21I9s2sAOtzzFsKXp3 C8pPVJbKZi+8oOuFK8bMsDSMM595QvCe7iM7o81kLvdkCrL/g72ro6so6ihtYBwtnKYy LpWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si2647331edw.573.2020.08.31.10.17.41; Mon, 31 Aug 2020 10:18:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728714AbgHaRQz (ORCPT + 99 others); Mon, 31 Aug 2020 13:16:55 -0400 Received: from mail.parknet.co.jp ([210.171.160.6]:33968 "EHLO mail.parknet.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbgHaRQz (ORCPT ); Mon, 31 Aug 2020 13:16:55 -0400 Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTPSA id 5471F1B44DF; Tue, 1 Sep 2020 02:16:54 +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-20) with ESMTPS id 07VHGr4D366255 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 1 Sep 2020 02:16:54 +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-20) with ESMTPS id 07VHGquF3463679 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 1 Sep 2020 02:16:52 +0900 Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.15.2/8.15.2/Submit) id 07VHGqsu3463678; Tue, 1 Sep 2020 02:16:52 +0900 From: OGAWA Hirofumi To: Jens Axboe Cc: Andrew Morton , linux-kernel , fsdevel Subject: Re: [PATCH] fat: Avoid oops when bdi->io_pages==0 References: <87ft85osn6.fsf@mail.parknet.co.jp> <87o8mq6aao.fsf@mail.parknet.co.jp> <4010690f-20ad-f7ba-b595-2e07b0fa2d94@kernel.dk> Date: Tue, 01 Sep 2020 02:16:52 +0900 In-Reply-To: <4010690f-20ad-f7ba-b595-2e07b0fa2d94@kernel.dk> (Jens Axboe's message of "Mon, 31 Aug 2020 10:39:26 -0600") Message-ID: <87h7si68hn.fsf@mail.parknet.co.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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 Jens Axboe writes: > On 8/31/20 10:37 AM, OGAWA Hirofumi wrote: >> Jens Axboe writes: >> >>> I don't think we should work-around this here. What device is this on? >>> Something like the below may help. >> >> The reported bug is from nvme stack, and the below patch (I submitted >> same patch to you) fixed the reported case though. But I didn't verify >> all possible path, so I'd liked to use safer side. >> >> If block layer can guarantee io_pages!=0 instead, and can apply to >> stable branch (5.8+). It would work too. > > We really should ensure that ->io_pages is always set, imho, instead of > having to work-around it in other spots. I think it is good too. However, the issue would be how to do it for stable branch. If you think that block layer patch is enough and submit to stable (5.8+) branch instead, I'm fine without fatfs patch. (Or removing workaround in fatfs with block layer patch later?) Thanks. -- OGAWA Hirofumi