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
MFC after: 1 week
Sponsored by: Chelsio Communications
Differential D29688 Authored by jhb on Apr 10 2021, 12:00 AM.
Details
Summary iscsid can be sleeping in iscsi_ioctl() causing the destroy_dev() to Reported by: Jithesh Arakkan @ Chelsio
Diff Detail
Event TimelineHerald added a subscriber: imp. · View Herald TranscriptApr 10 2021, 12:00 AM2021-04-10 00:00:14 (UTC+0) Harbormaster completed remote builds in B38476: Diff 87165.Apr 10 2021, 12:00 AM2021-04-10 00:00:15 (UTC+0) Comment Actions To reproduce, just kldunload iscsi while iscsid is running. The kldunload will hang in "devdrn" inside of destroy_dev(). This revision is now accepted and ready to land.Apr 10 2021, 4:28 PM2021-04-10 16:28:18 (UTC+0)
Closed by commit rG89df484739ef: iscsi: Kick threads out of iscsi_ioctl() during unload. (authored by jhb). · Explain WhyApr 12 2021, 8:59 PM2021-04-12 20:59:39 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 87347 sys/dev/iscsi/iscsi.h
sys/dev/iscsi/iscsi.c
|