Whamcloud - gitweb
LU-15994 llite: use fatal_signal_pending in range_lock 06/48106/2
authorQian Yingjin <qian@ddn.com>
Tue, 2 Aug 2022 09:14:48 +0000 (05:14 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Aug 2022 19:54:10 +0000 (19:54 +0000)
commit4c5b0b0967f052af33cc5cdb4e77d736f04bae56
tree5951085428c8bd5fe65b7c54ea04888b37a4cd1a
parentf276f1cb0859e8718448e69bd99ee305f5e62d42
LU-15994 llite: use fatal_signal_pending in range_lock

FIO io_uring failed with one file shared by two FIO processes
under Unubtu 2204 kernel.
After analyzed, we found that range_lock() function return
-ERESTARTSYS when there pending signal on current process in
Lustre I/O. This causes -EINTR returned to the application.

we solve this bug by replacing @signal_pending(current) with
@fatal_signal_pending(current) in range_lock(). The range_lock()
function only returns -ERESTARTSYS when the current process has
fatal pending signal such as SIGKILL.

Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: I0a0be8fa3b4ba5c89f7866286b2bdc6595f18026
Reviewed-on: https://review.whamcloud.com/48106
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/range_lock.c