[PATCH] 9p: v9fs_file_do_lock: replace WARN_ONCE with p9_debug
Dominique Martinet via B4 Relay <[email protected]> Fri, 29 May 2026 12:09:20 +0900
| Newsgroups | dev.linux.lists.v9fs,org.kernel.feeds.b4-sent,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: Dominique Martinet <[email protected]> This warning depends on server-provided data, we should not use WARN here Reported-by: Yifei Chu <[email protected]> Closes: https://lore.kernel.org/r/CAPJnbgJ7ZK7DCjCfG56hd_iKGePmAzudb4hOWd4=9r32nM+KcA@mail.gmail.com Signed-off-by: Dominique Martinet <[email protected]> --- fs/9p/vfs_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c index c5e73c37baea55394294b939fdda7170db8503c0..cddfb4b7ce4e22aacad7b51f6e6cbd164b7c2f8f 100644 --- a/fs/9p/vfs_file.c +++ b/fs/9p/vfs_file.c @@ -198,7 +198,7 @@ static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) res = -EAGAIN; break; default: - WARN_ONCE(1, "unknown lock status code: %d\n", status); + p9_debug(P9_DEBUG_ERROR, "unknown lock status code: %d\n", status); fallthrough; case P9_LOCK_ERROR: case P9_LOCK_GRACE: --- base-commit: 3ec9e935015b11236ba778885d89e399f00d6b50 change-id: 20260529-lock-warn-f014cac9badd Best regards, -- Dominique Martinet <[email protected]>