]> 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, 12 Apr 2021 20:58:21 +0000 (13:58 -0700)
commit89df484739efe93b52da467f35255ae538bb946b
tree02bc506735c21fb23501fc4165a33f6e3d0922ec
parent568e69e4eb0ad1a5c69d8ea4592a4314bd6b6679
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
Reviewed by: mav
MFC after: 1 week
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D29688
sys/dev/iscsi/iscsi.c
sys/dev/iscsi/iscsi.h