
16 Nov
2021
16 Nov
'21
8:53 p.m.
在 2021/11/16 19:21, John Garry 写道:
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
ok, i will remove it.
+ + list_add_tail(&sw->drain_node, &ha->defer_q); + deferred = true; + }
.