[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAD+ocby-+okNtjd=F4Zw_G_yoVSUumUBUHLp_y052vo-3-M3Uw@mail.gmail.com>
Date: Fri, 12 Jun 2020 10:31:15 -0700
From: harshad shirwadkar <harshadshirwadkar@...il.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: Ext4 Developers List <linux-ext4@...r.kernel.org>
Subject: Re: [PATCH] ext4: issue aligned discards
On Mon, Jun 8, 2020 at 12:35 AM Christoph Hellwig <hch@...radead.org> wrote:
>
> On Fri, Jun 05, 2020 at 03:28:19PM -0700, Harshad Shirwadkar wrote:
> > Ext4 before this patch can issue discards without respecting block
> > device's discard alignment. Such a discard results in EIO and
> > kernel logs.
>
> No, that is not how discard works. The granularity is a hint and
> blk_bio_discard_split already does all the work to align to it. If
> you have a make_request based driver that doesn't do that you need
> to fix that driver instead.
Thanks for the clarification, my commit message was wrong. Fixing the
driver instead is the right solution here. But, if doing discard
alignment in Ext4 can increase the chances of discards being
successful, is there any harm in doing it in Ext4 too?
Powered by blists - more mailing lists