On 16/11/2021 03:10, chenxiang wrote:
+/* defer works of new phys during suspend */ +static bool sas_defer_event(struct asd_sas_phy *phy, struct asd_sas_event *ev) +{
- struct sas_ha_struct *ha = phy->ha;
- unsigned long flags;
- bool deferred = false;
- spin_lock_irqsave(&ha->lock, flags);
- if (test_bit(SAS_HA_RESUMING, &ha->state) && !phy->suspended) {
struct sas_work *sw = &ev->work;
nit: double whitespace
list_add_tail(&sw->drain_node, &ha->defer_q);
deferred = true;
- }