Thread (9 messages) 9 messages, 3 authors, 2021-03-15

Re: [PATCH RFCv2] mm/madvise: introduce MADV_POPULATE_(READ|WRITE) to prefault/prealloc memory

From: Kirill A. Shutemov <hidden>
Date: 2021-03-15 13:04:36
Also in: linux-alpha, linux-api, linux-arch, lkml

On Mon, Mar 15, 2021 at 01:25:40PM +0100, David Hildenbrand wrote:
On 15.03.21 13:22, Kirill A. Shutemov wrote:
quoted
On Mon, Mar 08, 2021 at 05:45:20PM +0100, David Hildenbrand wrote:
quoted
+			case -EHWPOISON: /* Skip over any poisoned pages. */
+				start += PAGE_SIZE;
+				continue;
Why is it good approach? It's not abvious to me.
My main motivation was to simplify return code handling. I don't want to
return -EHWPOISON to user space
Why? Hiding the problem under the rug doesn't help anybody. SIGBUS later
is not better than an error upfront.

-- 
 Kirill A. Shutemov
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help