diff options
| author | Jonathan Curley <jcurley@purestorage.com> | 2025-11-12 18:02:42 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-12-18 14:03:34 +0100 |
| commit | 38694f9aae00459ab443a7dc8b3949a6b33b560a (patch) | |
| tree | 7275fc9b6d332598b4e2d32c2e4d3ef2376a2966 /tools/perf/scripts/python/stackcollapse.py | |
| parent | a7d914e1f9b4e487648f6d24900899a11ad6867b (diff) | |
| download | kernel-38694f9aae00459ab443a7dc8b3949a6b33b560a.tar.gz | |
NFSv4/pNFS: Clear NFS_INO_LAYOUTCOMMIT in pnfs_mark_layout_stateid_invalid
[ Upstream commit e0f8058f2cb56de0b7572f51cd563ca5debce746 ]
Fixes a crash when layout is null during this call stack:
write_inode
-> nfs4_write_inode
-> pnfs_layoutcommit_inode
pnfs_set_layoutcommit relies on the lseg refcount to keep the layout
around. Need to clear NFS_INO_LAYOUTCOMMIT otherwise we might attempt
to reference a null layout.
Fixes: fe1cf9469d7bc ("pNFS: Clear all layout segment state in pnfs_mark_layout_stateid_invalid")
Signed-off-by: Jonathan Curley <jcurley@purestorage.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
