[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <17b30f253172cce94d1e2ec86d00e82eea077bde.camel@mediatek.com>
Date: Fri, 11 Oct 2024 09:08:10 +0000
From: Qun-wei Lin (林群崴) <Qun-wei.Lin@...iatek.com>
To: "ying.huang@...el.com" <ying.huang@...el.com>
CC: Andrew Yang (楊智強) <Andrew.Yang@...iatek.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"baohua@...nel.org" <baohua@...nel.org>, "linux-block@...r.kernel.org"
<linux-block@...r.kernel.org>, "linux-mediatek@...ts.infradead.org"
<linux-mediatek@...ts.infradead.org>, "willy@...radead.org"
<willy@...radead.org>, "linux-mm@...ck.org" <linux-mm@...ck.org>,
wsd_upstream <wsd_upstream@...iatek.com>, "david@...hat.com"
<david@...hat.com>, "schatzberg.dan@...il.com" <schatzberg.dan@...il.com>,
Chinwen Chang (張錦文)
<chinwen.chang@...iatek.com>, John Hsu (許永翰)
<John.Hsu@...iatek.com>, "viro@...iv.linux.org.uk" <viro@...iv.linux.org.uk>,
"axboe@...nel.dk" <axboe@...nel.dk>, "akpm@...ux-foundation.org"
<akpm@...ux-foundation.org>, "kasong@...cent.com" <kasong@...cent.com>,
Casper Li (李中榮) <casper.li@...iatek.com>,
"chrisl@...nel.org" <chrisl@...nel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>, "matthias.bgg@...il.com"
<matthias.bgg@...il.com>, AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>, "ryan.roberts@....com"
<ryan.roberts@....com>
Subject: Re: [PATCH 0/2] Add BLK_FEAT_READ_SYNCHRONOUS and
SWP_READ_SYNCHRONOUS_IO
Hi Ying,
Thank you for your question.
The primary motivation for these new feature flags is to handle
scenarios where we want read operations to be completed within the
submit context, while write operations are handled in a different
context.
This does not necessarily imply that the write operations are slow;
rather, it is about optimizing the handling of read and write
operations based on their specific characteristics and requirements.
Best Regards,
Qun-Wei
On Wed, 2024-09-25 at 15:34 +0800, Huang, Ying wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> Qun-Wei Lin <qun-wei.lin@...iatek.com> writes:
>
> > This patchset introduces 2 new feature flags,
> BLK_FEAT_READ_SYNCHRONOUS and
> > SWP_READ_SYNCHRONOUS_IO.
> >
> > These changes are motivated by the need to better accommodate
> certain swap
> > devices that support synchronous read operations but asynchronous
> write
> > operations.
> >
> > The existing BLK_FEAT_SYNCHRONOUS and SWP_SYNCHRONOUS_IO flags are
> not
> > sufficient for these devices, as they enforce synchronous behavior
> for both
> > read and write operations.
>
> Which kind of device needs this? Read fast, but write slow?
>
> --
> Best Regards,
> Huang, Ying
Powered by blists - more mailing lists