On Wed, 21 May 2008 21:00:12 +0530 Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
It's good to document the locking prerequisites but for rwsems, one
should specify whether it must be held for reading or for writing.
Of course, down_write() is a superset of down_read(), so if it's "held
for reading" then either mode-of-holding is OK. But it's best to spell
all that out.
--