mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
ipmi:si: Don't block module unload if the BMC is messed up
If the BMC is in a bad state, don't bother waiting for queues messages
since there can't be any. Otherwise the unload is blocked until the
BMC is back in a good state.
Reported-by: Rafael J. Wysocki <rafael@kernel.org>
Fixes: bc3a9d2177 ("ipmi:si: Gracefully handle if the BMC is non-functional")
Cc: stable@vger.kernel.org # 4.18
Signed-off-by: Corey Minyard <corey@minyard.net>
Reviewed-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
This commit is contained in:
parent
c3bb329563
commit
f895e5df80
1 changed files with 2 additions and 1 deletions
|
|
@ -2234,7 +2234,8 @@ static void wait_msg_processed(struct smi_info *smi_info)
|
|||
unsigned long jiffies_now;
|
||||
long time_diff;
|
||||
|
||||
while (smi_info->curr_msg || (smi_info->si_state != SI_NORMAL)) {
|
||||
while (smi_info->si_state != SI_HOSED &&
|
||||
(smi_info->curr_msg || (smi_info->si_state != SI_NORMAL))) {
|
||||
jiffies_now = jiffies;
|
||||
time_diff = (((long)jiffies_now - (long)smi_info->last_timeout_jiffies)
|
||||
* SI_USEC_PER_JIFFY);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue