mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 21:52:45 +00:00
Oops! If we're deciding a command is now really dead, make *darned*
sure that it really is by issuing a ISPCTL_ABORT_CMD just on the off chance the f/w will start it up again and, ha ha, start using the DMA resources we gave it but are now taking away.
This commit is contained in:
parent
3e97a5b432
commit
1fcf5deb4a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62619
@ -1254,6 +1254,15 @@ isp_watchdog(void *arg)
|
||||
isp->isp_name, handle, r));
|
||||
xpt_done((union ccb *) xs);
|
||||
} else if (XS_CMD_GRACE_P(xs)) {
|
||||
/*
|
||||
* Make sure the command is *really* dead before we
|
||||
* release the handle (and DMA resources) for reuse.
|
||||
*/
|
||||
(void) isp_control(isp, ISPCTL_ABORT_CMD, arg);
|
||||
|
||||
/*
|
||||
* After this point, the comamnd is really dead.
|
||||
*/
|
||||
if (XS_XFRLEN(xs)) {
|
||||
ISP_DMAFREE(isp, xs, handle);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user