Subject: kern/9703: Detaching an sd device can hang the system
To: None <>
From: Lennart Augustsson <>
List: netbsd-bugs
Date: 03/29/2000 15:58:43
>Number:         9703
>Category:       kern
>Synopsis:       Detaching an sd device can hang the system
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 29 15:57:00 2000
>Originator:     Lennart Augustsson
Department of Computing Science, Chalmers University
>Release:        NetBSD-current 2000-03-30
System: NetBSD opus 1.4X NetBSD 1.4X (OPUS) #103: Wed Mar 29 02:25:17 CEST 2000 augustss@opus:/usr/src/sys/arch/i386/compile/OPUS i386

	If an sd device is detached and has pending I/O operations the
	function scsi_kill_pending() is called to kill them off.
	But this function does not seem to make any progress, it just
	sits in its while loop calling scsipi_done for the first
	scsipi_xer over and over again.
	Detach a disk that is doing I/O.  Watch it die.