Skip to content
Commit 84759c6d authored by Kent Overstreet's avatar Kent Overstreet
Browse files

Revert "rw_semaphore: remove up/down_read_non_owner"



This reverts commit 11b80f45.

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: default avatarKent Overstreet <koverstreet@google.com>
CC: Christoph Hellwig <hch@infradead.org>
CC: David Howells <dhowells@redhat.com>
parent a937536b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment