]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ksmbd: use msleep instaed of schedule_timeout_interruptible()
authorNamjae Jeon <linkinjeon@kernel.org>
Fri, 22 Nov 2024 07:16:00 +0000 (16:16 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 26 Nov 2024 00:58:26 +0000 (18:58 -0600)
use msleep instaed of schedule_timeout_interruptible()
to guarantee the task delays as expected.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/connection.c

index 23c5ff84c9eb277ccb85429d18988c1b271bf3b1..9be9f39afb2ba85d20e623fefa3108813d01da39 100644 (file)
@@ -462,7 +462,7 @@ again:
        up_read(&conn_list_lock);
 
        if (!list_empty(&conn_list)) {
-               schedule_timeout_interruptible(HZ / 10); /* 100ms */
+               msleep(100);
                goto again;
        }
 }