Date: Thu, 1 Feb 2018 17:32:45 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328694 - head/sys/compat/linuxkpi/common/src Message-ID: <201802011732.w11HWj0t054071@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Thu Feb 1 17:32:45 2018 New Revision: 328694 URL: https://svnweb.freebsd.org/changeset/base/328694 Log: Make sure the LinuxKPI's internal ERESTARTSYS error code gets translated into ERESTART for mmap and page fault calls aswell. MFC after: 1 week Sponsored by: Mellanox Technologies Modified: head/sys/compat/linuxkpi/common/src/linux_compat.c Modified: head/sys/compat/linuxkpi/common/src/linux_compat.c ============================================================================== --- head/sys/compat/linuxkpi/common/src/linux_compat.c Thu Feb 1 17:16:17 2018 (r328693) +++ head/sys/compat/linuxkpi/common/src/linux_compat.c Thu Feb 1 17:32:45 2018 (r328694) @@ -1149,6 +1149,8 @@ linux_file_mmap_single(struct file *fp, vm_ooffset_t * error = EINTR; } else { error = -OPW(fp, td, filp->f_op->mmap(filp, vmap)); + if (error == ERESTARTSYS) + error = ERESTART; up_write(&vmap->vm_mm->mmap_sem); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802011732.w11HWj0t054071>