Skip to contentSkip to conversation

nfs: allow nfs4_handle_delegation_recall_error() to silently handle -ERESTARTSYS

PATCH New Jeff Layton 1 participant 1 message Aug 12

Subsystems (2)
lore
Share & tools
lore

Jeff Layton

author maintainer
#0 lore raw

PATCH 1/1 nfs: allow nfs4_handle_delegation_recall_error() to silently handle -ERESTARTSYS

Currently, when a process stuck waiting on a delegrecall catches a signal, it emits a scary looking printk():

NFS: nfs4_handle_delegation_recall_error: unhandled error -512.

Allow nfs4_handle_delegation_recall_error() to accept and return that value without the printk().

---
 fs/nfs/nfs4proc.c | 1 +
 1 file changed, 1 insertion(+)
fs/nfs/nfs4proc.c +1 -0
index 5709c6fea85b..3354d84c5a9a 100644
@@ -2302,6 +2302,7 @@ static int nfs4_handle_delegation_recall_error(struct nfs_server *server, struct
 		case -EAGAIN:
 		case -ESTALE:
 		case -ETIMEDOUT:
+		case -ERESTARTSYS:
 			break;
 		case -NFS4ERR_BADSESSION:
 		case -NFS4ERR_BADSLOT:

---
base-commit: f5bbbfec59b4e2fb7520a91de3df8a6174325d6a
change-id: 20260812-nfserr-1ba86fea7901

Best regards,

Signature · 1 line
Jeff Layton <[email protected]>