- record->event == IB_EVENT_SM_CHANGE) {
- ipoib_dbg(priv, "Port active event\n");
- schedule_work(&priv->flush_task);
+ record->event == IB_EVENT_SM_CHANGE ||
+ record->event == IB_EVENT_CLIENT_REREGISTER) {
+ ipoib_dbg(priv, "Port state change event\n");
+ queue_work(ipoib_workqueue, &priv->flush_task);