RE: [PATCH rc v4] iommufd/fault: Use a separate spinlock to protect fault->deliver list

From: Tian, Kevin
Date: Mon Jan 20 2025 - 00:37:31 EST


> From: Nicolin Chen <nicolinc@xxxxxxxxxx>
> Sent: Saturday, January 18, 2025 3:29 AM
>
>
> Lastly, move the mutex closer to the response in the fault structure,
> and update its kdoc accordingly.

Then this comment is stale.

>
> - /* The lists of outstanding faults protected by below mutex. */
> - struct mutex mutex;
> + spinlock_t lock; /* protects the deliver list */
> struct list_head deliver;
> + struct mutex mutex; /* serializes response flows */
> struct xarray response;
>

And the comment for the mutex should be restored.