drdb: Switch to kvfree_rcu() API
[platform/kernel/linux-starfive.git] / drivers / block / drbd / drbd_state.c
index 4ee11ae..3f7bf9f 100644 (file)
@@ -2071,8 +2071,7 @@ static int w_after_conn_state_ch(struct drbd_work *w, int unused)
                conn_free_crypto(connection);
                mutex_unlock(&connection->resource->conf_update);
 
-               synchronize_rcu();
-               kfree(old_conf);
+               kvfree_rcu(old_conf);
        }
 
        if (ns_max.susp_fen) {