]> Zhao Yanbai Git Server - minix.git/commit
VFS: fix check_bsf() locking
authorArne Welzel <arne.welzel@gmail.com>
Thu, 27 Sep 2012 20:23:49 +0000 (22:23 +0200)
committerBen Gras <ben@minix3.org>
Fri, 28 Sep 2012 12:57:34 +0000 (14:57 +0200)
commite35c4f78d23a36aba640c71de5a694c5cc88c7c4
tree5281dc9f457c0dbbd5355607b6b5e9f4e38d26a1
parent7e1074732b22c1943adf61a15b4e8d0ae751889b
VFS: fix check_bsf() locking

The check_bsf() macro uses assert(mutex_trylock(&bsf_lock)) and
assumes bsf_lock is locked afterwards. This breaks when compiling
with NOASSERTS="yes". Also: macro to function transition.
servers/vfs/proto.h
servers/vfs/read.c