Date: Wed, 30 Sep 2009 13:26:31 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern kern_rwlock.c kern_sx.c src/sys/sys rwlock.h sx.h Message-ID: <200909301327.n8UDRGMp024849@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
attilio 2009-09-30 13:26:31 UTC FreeBSD src repository Modified files: sys/kern kern_rwlock.c kern_sx.c sys/sys rwlock.h sx.h Log: SVN rev 197643 on 2009-09-30 13:26:31Z by attilio When releasing a read/shared lock we need to use a write memory barrier in order to avoid, on architectures which doesn't have strong ordered writes, CPU instructions reordering. Diagnosed by: fabio Reviewed by: jhb Tested by: Giovanni Trematerra <giovanni dot trematerra at gmail dot com> Revision Changes Path 1.51 +4 -3 src/sys/kern/kern_rwlock.c 1.71 +4 -4 src/sys/kern/kern_sx.c 1.22 +0 -7 src/sys/sys/rwlock.h 1.43 +1 -8 src/sys/sys/sx.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909301327.n8UDRGMp024849>