emaste 748cf05a77 Fix panic after "WARNING - ATA_IDENTIFY taskqueue timeout"
When performing a firmware upgrade via atacontrol[1] the subsequent
command may time out producing the error message above.  When this
happens the callout could still be active, and the system would then
panic due to a destroyed semaphore.

Instead, ensure that the callout is done first, via callout_drain.

Note that this fix applies to the "old" ata(4) and so isn't applicable
to the default configuration in HEAD.  It is still applicable to
stable/8.

[1] http://lists.freebsd.org/pipermail/freebsd-current/2012-January/031122.html

Submitted by:   Nima Misaghian
Reviewed by:    rstone, attilio, mav
Obtained from:  SVOS
MFC after:      3 days
2012-02-13 01:44:12 +00:00
..
2012-02-10 15:34:36 +00:00
2012-02-03 13:40:51 +00:00
2012-02-10 12:35:57 +00:00
2012-02-12 19:29:34 +00:00
2012-01-17 12:14:26 +00:00
2012-01-02 12:12:10 +00:00
2012-02-10 12:40:50 +00:00
2012-02-12 05:14:12 +00:00
2012-02-10 12:35:57 +00:00
2012-02-01 20:19:33 +00:00