Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1318528
| From | Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v1] mm/madvise: pass return code of memory_failure() to userspace |
| Date | 2016-01-27 02:30 +0100 |
| Message-ID | <qVn5L-4lp-1@gated-at.bofh.it> (permalink) |
| References | <qTFgu-1rB-11@gated-at.bofh.it> <qVldE-33s-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Jan 26, 2016 at 03:27:58PM -0800, Andrew Morton wrote: > On Fri, 22 Jan 2016 17:27:57 +0900 Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> wrote: > > > Currently the return value of memory_failure() is not passed to userspace, which > > is inconvenient for test programs that want to know the result of error handling. > > So let's return it to the caller as we already do in MADV_SOFT_OFFLINE case. > > I updated this to mention that it's for madvise(MADV_HWPOISON): > > : Currently the return value of memory_failure() is not passed to userspace > : when madvise(MADV_HWPOISON) is used. This is inconvenient for test > : programs that want to know the result of error handling. So let's return > : it to the caller as we already do in the MADV_SOFT_OFFLINE case. Thank you. > btw, MADV_SOFT_OFFLINE and MADV_HWPOISON are not documented in that > comment block over sys_madvise(). Fixy please? You might want to > check that no other MADV_foo values have been omitted. OK, I posted the fix patch just now, which also updates about some other madvices. Thanks, Naoya Horiguchi
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v1] mm/madvise: pass return code of memory_failure() to userspace Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> - 2016-01-22 09:30 +0100
Re: [PATCH v1] mm/madvise: pass return code of memory_failure() to userspace Andrew Morton <akpm@linux-foundation.org> - 2016-01-27 00:30 +0100
Re: [PATCH v1] mm/madvise: pass return code of memory_failure() to userspace Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> - 2016-01-27 02:30 +0100
Re: [PATCH v1] mm/madvise: pass return code of memory_failure() to userspace Vlastimil Babka <vbabka@suse.cz> - 2016-01-27 15:00 +0100
csiph-web