From 97b107f61cbe928ad6ee82dd68efe3371375cd9f Mon Sep 17 00:00:00 2001 From: Masamichi Takagi Date: Mon, 15 Jun 2020 13:03:37 +0900 Subject: [PATCH] treat /var/opt/FJSVtcs/ple/daemonif/ as device file (Fugaku specific) Change-Id: I047ec793a082f2fede3f2bd9c5fb358a30b8ea84 --- executer/kernel/mcctrl/syscall.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/executer/kernel/mcctrl/syscall.c b/executer/kernel/mcctrl/syscall.c index 68f50ef0..3fd22112 100644 --- a/executer/kernel/mcctrl/syscall.c +++ b/executer/kernel/mcctrl/syscall.c @@ -980,8 +980,10 @@ static int pager_req_create(ihk_os_t os, int fd, uintptr_t result_pa) fullpath = d_path(&file->f_path, pathbuf, PATH_MAX); if (!IS_ERR(fullpath)) { if (!strncmp("/tmp/ompi.", fullpath, 10) || - !strncmp("/dev/shm/", fullpath, 9)) { - dprintk("%s: treating %s as a device file..\n", + !strncmp("/dev/shm/", fullpath, 9) || + (!strncmp("/var/opt/FJSVtcs/ple/daemonif/", + fullpath, 30) && !strstr(fullpath, "dstore_sm.lock"))) { + printk("%s: treating %s as a device file..\n", __func__, fullpath); kfree(pathbuf); @@ -1441,7 +1443,9 @@ static int pager_req_map(ihk_os_t os, int fd, size_t len, off_t off, fullpath = d_path(&file->f_path, pathbuf, PATH_MAX); if (!IS_ERR(fullpath)) { if (!strncmp("/tmp/ompi.", fullpath, 10) || - !strncmp("/dev/shm/", fullpath, 9)) { + !strncmp("/dev/shm/", fullpath, 9) || + !strncmp("/var/opt/FJSVtcs/ple/daemonif/", + fullpath, 30)) { dprintk("%s: pre-populating %s..\n", __func__, fullpath); prot_and_flags |= MAP_POPULATE;