[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9d13548f-7707-4741-9824-390146462db0@web.de>
Date: Mon, 17 Jun 2024 16:05:57 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Abhilash K V <kvabhilash@...ana.ai>,
Andrey Agranovich <aagranovich@...ana.ai>,
Bharat Jauhari <bjauhari@...ana.ai>, David Meriin <dmeriin@...ana.ai>,
Omer Shpigelman <oshpigelman@...ana.ai>, Sagiv Ozeri <sozeri@...ana.ai>,
Zvika Yehudai <zyehudai@...ana.ai>, netdev@...r.kernel.org,
linux-rdma@...r.kernel.org, dri-devel@...ts.freedesktop.org
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 01/15] net: hbl_cn: add habanalabs Core Network driver
…
> +++ b/drivers/net/ethernet/intel/hbl_cn/common/hbl_cn.c
> @@ -0,0 +1,5954 @@
…
> +int hbl_cn_read_spmu_counters(struct hbl_cn_port *cn_port, u64 out_data[], u32 *num_out_data)
> +{
…
> + mutex_lock(&cn_port->cnt_lock);
> + rc = port_funcs->spmu_sample(cn_port, *num_out_data, out_data);
> + mutex_unlock(&cn_port->cnt_lock);
> +
> + return rc;
> +}
…
Would you become interested to apply a statement like “guard(mutex)(&cn_port->cnt_lock);”?
https://elixir.bootlin.com/linux/v6.10-rc4/source/include/linux/mutex.h#L196
Regards,
Markus
Powered by blists - more mailing lists