NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/55965: st(4) on adaptec fails to 'mt erase'

The following reply was made to PR kern/55965; it has been noted by GNATS.

From: (Michael van Elst)
Subject: Re: kern/55965: st(4) on adaptec fails to 'mt erase'
Date: Sun, 31 Jan 2021 09:14:52 -0000 (UTC)

 hauke%Espresso.Rhein-Neckar.DE@localhost (Hauke Fath) writes:
 > That's a workaround. But mt is hanging there, whereas st.c says erase is an
 > asynchronous operation? And why would the operation be governed by the
 > scsipi_prevent() timeout?
 The scsipi_prevent() is called on close to release the drive and I suspect
 the asynchronous erase just blocks the drive from executing and finishing
 the prevent/allow command.
 Now, that should only present an error (and keep the drive locked),
 but the erase should complete somewhen.
 But if the driver tries a bus reset in the timeout handling which also
 resets the drive, this would abort the erase.
                                 Michael van Elst
                                 "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index