Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2018 18:18:33 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r328981 - stable/11/sys/compat/linuxkpi/common/src
Message-ID:  <201802071818.w17IIXCi039720@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Feb  7 18:18:33 2018
New Revision: 328981
URL: https://svnweb.freebsd.org/changeset/base/328981

Log:
  MFC r328694:
  Make sure the LinuxKPI's internal ERESTARTSYS error code gets translated
  into ERESTART for mmap and page fault calls aswell.
  
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/compat/linuxkpi/common/src/linux_compat.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/src/linux_compat.c
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/src/linux_compat.c	Wed Feb  7 18:17:10 2018	(r328980)
+++ stable/11/sys/compat/linuxkpi/common/src/linux_compat.c	Wed Feb  7 18:18:33 2018	(r328981)
@@ -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?201802071818.w17IIXCi039720>