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

From: David Howells
Date: Tue Jul 29 2014 - 11:38:16 EST


Milosz Tanski <milosz@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/