[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1f4d6aef-c75c-dd0f-02cb-a1246079c429@kernel.dk>
Date: Mon, 31 Aug 2020 11:19:49 -0600
From: Jens Axboe <axboe@...nel.dk>
To: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
fsdevel <linux-fsdevel@...r.kernel.org>
Subject: Re: [PATCH] fat: Avoid oops when bdi->io_pages==0
On 8/31/20 11:16 AM, OGAWA Hirofumi wrote:
> Jens Axboe <axboe@...nel.dk> writes:
>
>> On 8/31/20 10:37 AM, OGAWA Hirofumi wrote:
>>> Jens Axboe <axboe@...nel.dk> 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.
Agree
> 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?)
Well, it should catch any block based case as we then set it when
allocating the queue. So should do the trick for all block based
cases at least.
--
Jens Axboe
Powered by blists - more mailing lists