Skip to content

Commit e8581a9

Browse files
jtlaytonchucklever
authored andcommitted
nfsd: add more info to WARN_ON_ONCE on failed callbacks
Currently, you get the warning and stack trace, but nothing is printed about the relevant error codes. Add that in. Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 76a3f3f commit e8581a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/nfsd/nfs4callback.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,8 @@ static void nfsd4_cb_done(struct rpc_task *task, void *calldata)
13331333
return;
13341334

13351335
if (cb->cb_status) {
1336-
WARN_ON_ONCE(task->tk_status);
1336+
WARN_ONCE(task->tk_status, "cb_status=%d tk_status=%d",
1337+
cb->cb_status, task->tk_status);
13371338
task->tk_status = cb->cb_status;
13381339
}
13391340

0 commit comments

Comments
 (0)