mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
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 <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
76a3f3f164
commit
e8581a9124
@ -1333,7 +1333,8 @@ static void nfsd4_cb_done(struct rpc_task *task, void *calldata)
|
||||
return;
|
||||
|
||||
if (cb->cb_status) {
|
||||
WARN_ON_ONCE(task->tk_status);
|
||||
WARN_ONCE(task->tk_status, "cb_status=%d tk_status=%d",
|
||||
cb->cb_status, task->tk_status);
|
||||
task->tk_status = cb->cb_status;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user