[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <11ee83c8-5f0f-0950-a588-037bdcf9084e@yandex-team.ru>
Date: Wed, 15 May 2019 11:48:32 +0300
From: Konstantin Khlebnikov <khlebnikov@...dex-team.ru>
To: Michal Koutný <mkoutny@...e.com>
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, oleg@...hat.com
Subject: Re: mm: use down_read_killable for locking mmap_sem in
access_remote_vm
On 15.05.2019 11:38, Michal Koutný wrote:
> Hi,
> making this holder of mmap_sem killable was for the reasons of /proc/...
> diagnostics was an idea I was pondeering too. However, I think the
> approach of pretending we read 0 bytes is not correct. The API would IMO
> need to be extended to allow pass a result such as EINTR to the end
> caller.
> Why do you think it's safe to return just 0?
This function ignores any error like reading from unmapped area and
returns only size of successful transfer. It never returned any error codes.
>
> Michal
>
Powered by blists - more mailing lists