]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfs/localio: refactor iocb initialization
authorMike Snitzer <snitzer@kernel.org>
Fri, 19 Sep 2025 14:36:28 +0000 (10:36 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 30 Sep 2025 20:10:30 +0000 (16:10 -0400)
commite43e9a3a3d6652047808d6fadff5c3703f5ce90d
tree0880e32ab6cce53dd7670e91014d19e4cc299315
parent091bdcfcece0963a9a6590ba7cfcc9e1d454165f
nfs/localio: refactor iocb initialization

The goal of this commit's various refactoring is to have LOCALIO's per
IO initialization occur in process context so that we don't get into a
situation where IO fails to be issued from workqueue (e.g. due to lack
of memory, etc). Better to have LOCALIO's iocb initialization fail
early.

There isn't immediate need but this commit makes it possible for
LOCALIO to fallback to NFS pagelist code in process context to allow
for immediate retry over RPC.

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/localio.c