]> git.baikalelectronics.ru Git - kernel.git/commit
NFSD: WARN when freeing an item still linked via nf_lru
authorChuck Lever <chuck.lever@oracle.com>
Fri, 8 Jul 2022 18:25:04 +0000 (14:25 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Sat, 30 Jul 2022 00:10:07 +0000 (20:10 -0400)
commit0896df6da4a0f3b7c89c7e6679c54e8986f14964
treedcca90f48461852185ce6b0e50b8de40bf88a439
parentc12487f3cd55a56afa4bd618be668c53191bcc82
NFSD: WARN when freeing an item still linked via nf_lru

Add a guardrail to prevent freeing memory that is still on a list.
This includes either a dispose list or the LRU list.

This is the sign of a bug, but this class of bugs can be detected
so that they don't endanger system stability, especially while
debugging.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/filecache.c