]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ocs_fc: Fix device lost timer where device is not getting deleted.
authorRam Kishore Vegesna <ram@FreeBSD.org>
Fri, 24 Sep 2021 09:35:30 +0000 (15:05 +0530)
committerRam Kishore Vegesna <ram@FreeBSD.org>
Thu, 30 Sep 2021 07:31:17 +0000 (13:01 +0530)
commit41e946694333bcc6f64242f294312553f2ef2dcd
treeb51b8074d5a705210b450e6d156849fb003bc648
parentd063d1bc928165e7798df5ec1c424794a1ec41e9
ocs_fc: Fix device lost timer where device is not getting deleted.

Issue: Devices wont go away after the link down.

Device lost timer functionality in ocs_fc is broken,
`is_target` flag is not set in the target database and target delete is skipped.

Fix: Remove unused flags and delete the device when timer expires.

Reported by: ken@kdm.org
Reviewed by: mav, ken
sys/dev/ocs_fc/ocs.h
sys/dev/ocs_fc/ocs_cam.c