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>
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);