]> git.baikalelectronics.ru Git - kernel.git/commit
target: Drop signal_pending checks after interruptible lock acquire
authorNicholas Bellinger <nab@linux-iscsi.org>
Tue, 19 May 2015 22:10:44 +0000 (15:10 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 19 May 2015 22:18:20 +0000 (15:18 -0700)
commit4d39e469ee7f0310d5c5e7eb0a8aa378a6a866ee
tree4aad4ca471d2d69afac62087a716c4aa83d71ce8
parent1e79d66bf9b7b508c436fcd8de9bdabc19d4eb91
target: Drop signal_pending checks after interruptible lock acquire

Once upon a time, iscsit_get_tpg() was using an un-interruptible
lock.  The signal_pending() usage was a check to allow userspace
to break out of the operation with SIGINT.

AFAICT, there's no reason why this is necessary anymore, and as
reported by Alexey can be potentially dangerous.  Also, go ahead
and drop the other two problematic cases within iscsit_access_np()
and sbc_compare_and_write() as well.

Found by Linux Driver Verification project (linuxtesting.org).

Reported-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c
drivers/target/iscsi/iscsi_target_tpg.c
drivers/target/target_core_sbc.c