9p: v9fs_file_do_lock: replace WARN_ONCE with p9_debug
Dominique Martinet
maintainerPATCH 1/1 9p: v9fs_file_do_lock: replace WARN_ONCE with p9_debug
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 open here
Signed-off-by Dominique Martinet <[email protected]>
--- fs/9p/vfs_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/9p/vfs_file.c +1 -1
@@ -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,
Signature · 1 line
Dominique Martinet <[email protected]>