On Thu, 2024-12-19 at 16:57 -0500, Olga Kornievskaia wrote: > It helps to know what kind of callback happened that triggered the > WARN_ONCE in nfsd4_cb_done() function in diagnosing what can set > an uncommon state where both cb_status and tk_status are set at > the same time. > > Fixes: e8581a912447 ("nfsd: add more info to WARN_ON_ONCE on failed callbacks") > Signed-off-by: Olga Kornievskaia <okorniev@xxxxxxxxxx> > --- > fs/nfsd/nfs4callback.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c > index f24d8654393d..93b3d27ba0f2 100644 > --- a/fs/nfsd/nfs4callback.c > +++ b/fs/nfsd/nfs4callback.c > @@ -1397,8 +1397,9 @@ static void nfsd4_cb_done(struct rpc_task *task, void *calldata) > return; > > if (cb->cb_status) { > - WARN_ONCE(task->tk_status, "cb_status=%d tk_status=%d", > - cb->cb_status, task->tk_status); > + WARN_ONCE(task->tk_status, > + "cb_status=%d tk_status=%d cb_opcode=%d", > + cb->cb_status, task->tk_status, cb->cb_ops->opcode); > task->tk_status = cb->cb_status; > } > Reviewed-by: Jeff Layton <jlayton@xxxxxxxxxx>