summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorTim Menninger <tmenninger@everpuredata.com>2026-08-19 12:41:21 +0000
committerTrond Myklebust <trond.myklebust@hammerspace.com>2026-08-20 15:18:20 -0700
commit20358201777496fd0bb7b4336fcb4d3fc13cad28 (patch)
treebbfe76b13a51ce00630c9b2ec8e0438cfe6d775d /include/linux/timerqueue.h
parent8fa4804fe62ca4155a2d8fc2789d630376cbf2fc (diff)
pNFS: Fix EBUSY check in pnfs_layout_need_return
Commit 41d0a8ead9720 ("NFSv4/pnfs: Add support for the PNFS_LAYOUT_FILE_BULK_RETURN flag") replaced pnfs_layout_segments_returnable() in pnfs_layout_need_return() with a direct call to pnfs_mark_layout_stateid_return(). The old helper checked the return value against -EBUSY, but the replacement compares against EBUSY. Since pnfs_mark_layout_stateid_return() returns negative errno values, the -EBUSY case is never detected. Fix the comparison in pnfs_layout_need_return() to check against -EBUSY. Fixes: 41d0a8ead9720 ("NFSv4/pnfs: Add support for the PNFS_LAYOUT_FILE_BULK_RETURN flag") Cc: stable@vger.kernel.org Signed-off-by: Tim Menninger <tmenninger@everpuredata.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions