Merge tag 'for-6.4/block-2023-04-21' of git://git.kernel.dk/linux
[linux-block.git] / drivers / block / drbd / drbd_nl.c
index 8967298968f321d1fca3d054045176890bd94131..1a5d3d72d91d272fa7942a1619e16f10394e6761 100644 (file)
@@ -1615,7 +1615,7 @@ int drbd_adm_disk_opts(struct sk_buff *skb, struct genl_info *info)
                        drbd_send_sync_param(peer_device);
        }
 
-       kvfree_rcu(old_disk_conf);
+       kvfree_rcu_mightsleep(old_disk_conf);
        kfree(old_plan);
        mod_timer(&device->request_timer, jiffies + HZ);
        goto success;
@@ -2448,7 +2448,7 @@ int drbd_adm_net_opts(struct sk_buff *skb, struct genl_info *info)
 
        mutex_unlock(&connection->resource->conf_update);
        mutex_unlock(&connection->data.mutex);
-       kvfree_rcu(old_net_conf);
+       kvfree_rcu_mightsleep(old_net_conf);
 
        if (connection->cstate >= C_WF_REPORT_PARAMS) {
                struct drbd_peer_device *peer_device;
@@ -2862,7 +2862,7 @@ int drbd_adm_resize(struct sk_buff *skb, struct genl_info *info)
                new_disk_conf->disk_size = (sector_t)rs.resize_size;
                rcu_assign_pointer(device->ldev->disk_conf, new_disk_conf);
                mutex_unlock(&device->resource->conf_update);
-               kvfree_rcu(old_disk_conf);
+               kvfree_rcu_mightsleep(old_disk_conf);
                new_disk_conf = NULL;
        }