FS-Cache: Make cookie relinquishment wait for outstanding reads
authorDavid Howells <dhowells@redhat.com>
Thu, 20 Dec 2012 21:52:35 +0000 (21:52 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 20 Dec 2012 21:58:25 +0000 (21:58 +0000)
commitef46ed888efb1e8da33be5d33c9b54476289a43b
treed538dc01a075162f95da416da1fb5d6fd676445a
parent37491a1339df26259b06dfa33f30e574e9e52034
FS-Cache: Make cookie relinquishment wait for outstanding reads

Make fscache_relinquish_cookie() log a warning and wait if there are any
outstanding reads left on the cookie it was given.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/fscache/cookie.c
fs/fscache/operation.c
include/linux/fscache-cache.h