Revert "rw_semaphore: remove up/down_read_non_owner"

This reverts commit 11b80f459a.

Bcache needs rw semaphores for cache coherency in writeback mode -
writes have to take a read lock on a per cache device rw sem, and
release it when the bio completes.

But since this is for bios it's naturally not in the context of the
process that originally took the lock.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Christoph Hellwig <hch@infradead.org>
CC: David Howells <dhowells@redhat.com>
This commit is contained in:
Kent Overstreet 2011-09-21 21:43:05 -07:00
parent a937536b86
commit 84759c6d18
2 changed files with 26 additions and 0 deletions