mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
fscache: Detect multiple relinquishment of a cookie
Report if an fscache cookie is relinquished multiple times by the netfs. Signed-off-by: David <dhowells@redhat.com>
This commit is contained in:
@@ -602,7 +602,8 @@ void __fscache_relinquish_cookie(struct fscache_cookie *cookie, bool retire)
|
|||||||
atomic_read(&cookie->n_active), retire);
|
atomic_read(&cookie->n_active), retire);
|
||||||
|
|
||||||
/* No further netfs-accessing operations on this cookie permitted */
|
/* No further netfs-accessing operations on this cookie permitted */
|
||||||
set_bit(FSCACHE_COOKIE_RELINQUISHED, &cookie->flags);
|
if (test_and_set_bit(FSCACHE_COOKIE_RELINQUISHED, &cookie->flags))
|
||||||
|
BUG();
|
||||||
|
|
||||||
__fscache_disable_cookie(cookie, retire);
|
__fscache_disable_cookie(cookie, retire);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user