]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
CAM: Keep periph_links when restoring CCB in camperiphdone().
authorAlexander Motin <mav@FreeBSD.org>
Thu, 28 Apr 2022 01:39:50 +0000 (21:39 -0400)
committerAlexander Motin <mav@FreeBSD.org>
Tue, 3 May 2022 20:32:45 +0000 (16:32 -0400)
commit84849cfd1dc016917402511bc5a55d3d7317ce39
tree349b77be3968872b404f2a1fa6965b5b4f96ca49
parent225a1494a5538364cddf9080b57d65277c6bfdf4
CAM: Keep periph_links when restoring CCB in camperiphdone().

While recovery command executed, some other commands from the periph
may complete, that may affect periph_links of this CCB.  So restoring
original CCB we must keep current periph_links as more up to date.

I've found this triggering assertions with debug kernel and suspect
some memory corruptions otherwise when spun down disk receives two
or sometimes more concurrent requests.

MFC after: 1 week
Sponsored by: iXsystems, Inc.

(cherry picked from commit 404f001161b975164d8b52d9f404d07ac7584027)
sys/cam/cam_periph.c