Skip to contentSkip to conversation

nvme_change_ctrl_state() bug?

DISCUSSION Steve Wise 2 participants 2 messages Aug 12, 2016 NVMe

lore
Share & tools
lore

Steve Wise

author
#0 lore raw

Shouldn't the assigning of the state be inside the lock?

.

        spin_unlock_irq(&ctrl->lock);

        if (changed)
                ctrl->state = new_state;

        return changed;