summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_timeout.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2009-03-03 19:08:25 +0000
committermiod <miod@openbsd.org>2009-03-03 19:08:25 +0000
commitf7545f7e2a03cb25a53dcb1e8df1ecb57a7e4140 (patch)
treecbd26172f784331f7535c6b74e9c77e218619ff7 /sys/kern/kern_timeout.c
parentshorten sizes of variables to the required number of bits, and remove (diff)
downloadwireguard-openbsd-f7545f7e2a03cb25a53dcb1e8df1ecb57a7e4140.tar.xz
wireguard-openbsd-f7545f7e2a03cb25a53dcb1e8df1ecb57a7e4140.zip
Make sure the scsi_xfer timeout is triggered while the command is still alive.
With the current code, a fast command could complete between splx and the timeout being triggered, we'd then happily return COMPLETE, reuse the scsi_xfer, schedule the timeout again, causing a nice cycle in the timeout wheels. (I know, I know, I have to inspect all other scsi drivers now, but I'm really tired after spending three hours on this)
Diffstat (limited to 'sys/kern/kern_timeout.c')
0 files changed, 0 insertions, 0 deletions