Re: [PATCH v2 1/3] mm/memory-failure: userspace controls soft-offlining pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 17, 2024 at 3:34 AM Lance Yang <ioworker0@xxxxxxxxx> wrote:
>
> On Mon, Jun 17, 2024 at 4:16 PM Miaohe Lin <linmiaohe@xxxxxxxxxx> wrote:
> >
> > On 2024/6/17 15:51, Oscar Salvador wrote:
> > > On 2024-06-17 09:31, Miaohe Lin wrote:
> > >
> > >> IMHO, it might not be suitable to use EAGAIN. Because it means
> > >> "Resource temporarily unavailable" and
> > >> this can be solved by simply retry later without any further actions
> > >> taken. But I might be wrong.
> > >
> > > We usually use 'EOPNOTSUPP' when we fail due to a setting not being set.
> > > EPERM is more for a capability matter.
>
> Agreed. Let's use 'EOPNOTSUPP' here ;)

Thanks Oscar and Lance. Agreed, will do in v3.

>
> Thanks,
> Lance
>
> >
> > Thanks Oscar. So we should return EOPNOTSUPP here.
> >
> > Thanks.
> > .





[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux