From: Sanath Kumar Date: Wed, 5 Jul 2017 18:09:33 +0000 (-0500) Subject: sparc64: Treat ERESTARTSYS as an acceptable error (DAX driver) X-Git-Tag: v4.1.12-106.0.20170720_1900~19 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=279b2987f5c4e1ec709730af815ef5d1b998e4c8;p=users%2Fjedix%2Flinux-maple.git sparc64: Treat ERESTARTSYS as an acceptable error (DAX driver) get_user_pages fails if the current process calling it has a SIGKILL posted on it. Since this is an acceptable failure catch this error and print a debug message instead of an error message. Orabug: 26393400 Signed-off-by: Sanath Kumar Signed-off-by: Allen Pais Reviewed-by: Jonathan Helman --- diff --git a/arch/sparc/dax/dax_mm.c b/arch/sparc/dax/dax_mm.c index 97a8fa0e5596..37d214e5262e 100644 --- a/arch/sparc/dax/dax_mm.c +++ b/arch/sparc/dax/dax_mm.c @@ -203,6 +203,9 @@ int dax_map_segment_common(u32 *ccb_addr_type, enum dax_at at, dax_ctx->pages[at][idx] = page; dax_dbg("locked page %p, for VA 0x%lx", page, virtp); + } else if (ret == -ERESTARTSYS) { + dax_dbg("get_user_pages failed: Fatal signal posted on the current process"); + return -1; } else { dax_err("get_user_pages for 1 page failed, virtp=0x%lx, ret=%d", virtp, ret);