SVNews r318478

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-05-18 18:35:14 - r318478 by markj (markj)

Complete list of files affected by revision r318478:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/compat/linuxkpi/common/src/linux_compat.c  
  History   Contents   Diff   MODIFY   /head/sys/dev/drm2/ttm/ttm_bo_vm.c  

Commit message:

Fix a few uses of kern_yield() in the TTM and the LinuxKPI.

kern_yield(0) effectively causes the calling thread to be rescheduled
immediately since it resets the thread's priority to the highest possible
value. This can cause livelocks when the pattern
"while (!trylock()) kern_yield(0);" is used since the thread holding the
lock may linger on the runqueue for the CPU on which the looping thread is
running.

MFC after: 1 week

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 17 ms, 2 files printed. Current time is 2017-06-28 03:46:05. All times are in UTC/GMT.