]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sparc64: Treat ERESTARTSYS as an acceptable error (DAX driver)
authorSanath Kumar <sanath.s.kumar@oracle.com>
Wed, 5 Jul 2017 18:09:33 +0000 (13:09 -0500)
committerAllen Pais <allen.pais@oracle.com>
Tue, 18 Jul 2017 12:25:00 +0000 (17:55 +0530)
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 <sanath.s.kumar@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
Reviewed-by: Jonathan Helman <jonathan.helman@oracle.com>
arch/sparc/dax/dax_mm.c

index 97a8fa0e5596e6549ed7899ddbdd56ddf9e6a441..37d214e5262e71f359869e16924f4786425b8d55 100644 (file)
@@ -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);