]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Close the race on path ID allocation in xpt_bus_register() if two buses are
authormav <mav@FreeBSD.org>
Wed, 9 Oct 2013 12:09:01 +0000 (12:09 +0000)
committermav <mav@FreeBSD.org>
Wed, 9 Oct 2013 12:09:01 +0000 (12:09 +0000)
commitc05499893942c2cd7104f917c5f6ddc9e789d867
treef23b86ab0243d0ba21c222a05337c797ec16be42
parent06b2736d4dfaa5318b8ede11b53fd03efe9e59b1
Close the race on path ID allocation in xpt_bus_register() if two buses are
registered simultaneously. Due to topology unlock between the ID allocation
and the bus registration there is a chance that two buses may get the
same IDs. That is supposed reason of lock assertion panic in CAM during
initial bus scanning after new iscsid initiates two sessions same time.

Reported by: trasz
Approved by: re (glebus, marius)
MFC after: 2 weeks
sys/cam/cam_xpt.c