]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
iscsi: Kick threads out of iscsi_ioctl() during unload.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 12 Apr 2021 20:56:16 +0000 (13:56 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 26 Apr 2021 19:02:21 +0000 (12:02 -0700)
commit0d4d5e9fe0c684a5aeda62638d7b29b0f10009cd
tree95b38f0d099443d61e705bda6ad19bd714aeb4e9
parentc2e295647ea5da560f68462c4924cbb7e9414b3e
iscsi: Kick threads out of iscsi_ioctl() during unload.

iscsid can be sleeping in iscsi_ioctl() causing the destroy_dev() to
sleep forever if iscsi.ko is unloaded while iscsid is running.

Reported by: Jithesh Arakkan @ Chelsio
Sponsored by: Chelsio Communications

(cherry picked from commit 89df484739efe93b52da467f35255ae538bb946b)
sys/dev/iscsi/iscsi.c
sys/dev/iscsi/iscsi.h