Date: Wed, 29 Jun 2005 22:26:58 -0500 (CDT) From: "Nathan C. Burnett" <ncb@cs.wisc.edu> To: freebsd-hackers@freebsd.org Subject: buffer locking Message-ID: <Pine.LNX.4.58.0506292219200.7174@delicious.cs.wisc.edu>
next in thread | raw e-mail | index | archive | help
I'm working in FreeBSD 5.3-RELEASE. In various places in the buffer management code (e.g. ibwrite()) the buffer lock reference count is checked (see below), presumably to make sure the buffer is safely locked before working with it. Is there a reason that it's not neccesary to ensure that the current thread is the lockholder? This seems like it could lead to a race condition where, say ibwrite, is content because SOMEONE has the buffer locked, even if it's not the current thread. Thanks, -Nate
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.58.0506292219200.7174>