mptsas_handle_topo_change() can return without locks held
The expectation of the
mptsas_handle_topo_change() function is that it should always end up always returning with the
mpt->m_mutex held, this is partly why it asserts that it has it. In addition, the calling function does a
mutex_exit() a few lines later. The reality is that whenever this function returns, we need to make sure that we're entered the mutex.
Updated by Electric Monk almost 3 years ago
- Status changed from New to Closed
commit 8221efec02725289918c06a850adcd7393394c8b Author: Robert Mustacchi <firstname.lastname@example.org> Date: 2017-07-12T20:40:13.000Z 8346 SES topology information needs to search STP Bridge ports 8347 mpt_sas needs to set bridge-port property for SATA devices 8348 mptsas_handle_topo_change() can return without locks held Reviewed by: Joshua M. Clulow <email@example.com> Reviewed by: Patrick Mooney <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>