]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r197476:
authorattilio <attilio@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 13 Oct 2009 13:03:31 +0000 (13:03 +0000)
committerattilio <attilio@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 13 Oct 2009 13:03:31 +0000 (13:03 +0000)
commitc10f5c33507faa4b61d096c8f608497a51ea1500
treef7b195a5fe0de85358a8e315aa03b94d020a5b1c
parent77aacc699ac15e6c5f5d1711c3f3a72bd08b2d90
MFC r197476:
In function do_rw_wrlock, when a writer got an error and before returning,
check if there are readers blocked by us via URWLOCK_WRITE_WAITERS flag,
and resume the readers. The error must be EAGAIN, otherwise there must
have memory problem, and nobody can rescue the buggy application.

Approved by: re (kib), davidxu

git-svn-id: svn://svn.freebsd.org/base/stable/8@198030 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/kern_umtx.c