[Devel] [PATCH vz9] fs/fuse kio: implement rpc errors collection
Alexey Kuznetsov
kuznet at acronis.com
Mon Jul 24 15:22:27 MSK 2023
Also:
+ spin_lock(&metrics->lock);
+
+ list_for_each_entry(metric, &metrics->fuse_rpc_error_metric_list, list)
+ if (pcs_netaddr_cmp_ignore_port(&metric->m.addr, addr) == 0)
+ goto out;
+
+ metric = kzalloc(sizeof(*metric), GFP_KERNEL);
You cannot do GFP_KERNEL under spinlock.
Replace it with GFP_ATOMIC or replace spinlock with mutex.
More information about the Devel
mailing list