]> git.baikalelectronics.ru Git - kernel.git/commit
ksmbd: uninterruptible wait for a file being unlocked
authorHyunchul Lee <hyc.lee@gmail.com>
Sat, 10 Jul 2021 00:34:20 +0000 (09:34 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Sat, 10 Jul 2021 07:23:56 +0000 (16:23 +0900)
commit08f8dc5ed883c6e262a4df3b38bbe5b8fa214012
tree037e63043456953d5c0cb5123c894f6ded61cf8f
parent279b35ddfa8ca1adb32b2dac9b10ded56da9cd61
ksmbd: uninterruptible wait for a file being unlocked

the wait can be canceled by SMB2_CANCEL, SMB2_CLOSE,
SMB2_LOGOFF, disconnection or shutdown, we don't have
to use wait_event_interruptible.

And this remove the warning from Coverity:

CID 1502834 (#1 of 1): Unused value (UNUSED_VALUE)
returned_value: Assigning value from ksmbd_vfs_posix_lock_wait(flock)
to err here, but that stored value is overwritten before it can be used.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c
fs/ksmbd/vfs.c
fs/ksmbd/vfs.h