]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ahc(4)/ahd(4): target mode: cancel outstanding AIOs and INOTs
authorHP van Braam <hp@tmm.cx>
Tue, 23 Apr 2024 20:47:12 +0000 (14:47 -0600)
committerWarner Losh <imp@FreeBSD.org>
Tue, 23 Apr 2024 20:57:19 +0000 (14:57 -0600)
commitd31b677356d74b5747814f98a5151e8ee0595399
tree3de9eec6520b47dbcf34a533c607bd256e793096
parent65971073d935e8314bff8bca26d1445e9e336fce
ahc(4)/ahd(4): target mode: cancel outstanding AIOs and INOTs

When disabling a lun there can still be outstanding AIOs and INOTs, when
this happens previously the lun would just fail to disable and trying to
re-use the lun would break the card.

isp(4) in target mode does the same thing when disabling a lun, in
testing this allows re-starting of ctld(8) with connected initiators and
allows initiators to gracefully resume afterwards.

Signed-off-by: HP van Braam <hp@tmm.cx>
Reviewed by: imp, mav
Pull Request: https://github.com/freebsd/freebsd-src/pull/1190
sys/dev/aic7xxx/aic79xx.c
sys/dev/aic7xxx/aic7xxx.c