[Linux-cachefs] [PATCH 2/3] FS-Cache: Reduce cookie ref count if submit fails.

David Howells dhowells at redhat.com
Tue Jul 29 15:37:58 UTC 2014


Milosz Tanski <milosz at adfin.com> wrote:

> +	wake_cookie = __fscache_unuse_cookie(cookie);
>  	spin_unlock(&cookie->lock);
> +	if (wake_cookie)
> +		__fscache_wake_unused_cookie(cookie);

Why do __fscache_unuse_cookie() with cookie->lock held?

David




More information about the Linux-cachefs mailing list