Date: Thu, 25 May 2017 01:15:53 +0000 (UTC) From: Mark Johnston <markj@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: r318847 - in stable/11/sys: dev/drm2/ttm kern Message-ID: <201705250115.v4P1FrNd024640@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Thu May 25 01:15:53 2017 New Revision: 318847 URL: https://svnweb.freebsd.org/changeset/base/318847 Log: MFC r318476, r318478: Fix up some kern_yield() usages. Modified: stable/11/sys/dev/drm2/ttm/ttm_bo_vm.c stable/11/sys/kern/kern_fail.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/dev/drm2/ttm/ttm_bo_vm.c ============================================================================== --- stable/11/sys/dev/drm2/ttm/ttm_bo_vm.c Thu May 25 01:14:34 2017 (r318846) +++ stable/11/sys/dev/drm2/ttm/ttm_bo_vm.c Thu May 25 01:15:53 2017 (r318847) @@ -126,7 +126,7 @@ reserve: ret = ttm_bo_reserve(bo, false, false, false, 0); if (unlikely(ret != 0)) { if (ret == -EBUSY) { - kern_yield(0); + kern_yield(PRI_USER); goto reserve; } } @@ -139,7 +139,7 @@ reserve: case -EBUSY: case -ERESTARTSYS: case -EINTR: - kern_yield(0); + kern_yield(PRI_USER); goto reserve; default: retval = VM_PAGER_ERROR; Modified: stable/11/sys/kern/kern_fail.c ============================================================================== --- stable/11/sys/kern/kern_fail.c Thu May 25 01:14:34 2017 (r318846) +++ stable/11/sys/kern/kern_fail.c Thu May 25 01:15:53 2017 (r318847) @@ -612,7 +612,7 @@ fail_point_eval_nontrivial(struct fail_p break; case FAIL_POINT_YIELD: - kern_yield(-1); + kern_yield(PRI_UNCHANGED); break; case FAIL_POINT_DELAY:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705250115.v4P1FrNd024640>