Thread (36 messages) flat view 36 messages, 3 authors, 2025-08-18

Re: [PATCH net-next v6 02/19] psp: base PSP device support

From: Paolo Abeni <pabeni@redhat.com>
Date: 2025-08-14 14:21:57

On 8/12/25 2:29 AM, Daniel Zahka wrote:
+/**
+ * psp_dev_unregister() - unregister PSP device
+ * @psd:	PSP device structure
+ */
+void psp_dev_unregister(struct psp_dev *psd)
+{
+	mutex_lock(&psp_devs_lock);
+	mutex_lock(&psd->lock);
+
+	psp_nl_notify_dev(psd, PSP_CMD_DEV_DEL_NTF);
+	xa_store(&psp_devs, psd->id, NULL, GFP_KERNEL);
It's not 110% obvious to me that the above is equivalent to xa_clear(),
given the XA_FLAGS_ALLOC1 init flag. If you have to re-submit, please
consider using xa_clear() instead.

/P
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help