Re: [PATCH v5 01/14] net: ionic: Create an auxiliary device for rdma driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



…
> +++ b/drivers/net/ethernet/pensando/ionic/ionic_aux.c
> @@ -0,0 +1,80 @@
…
> +void ionic_auxbus_unregister(struct ionic_lif *lif)
> +{
> +	mutex_lock(&lif->adev_lock);
> +	if (!lif->ionic_adev)
…
> +out:
> +	mutex_unlock(&lif->adev_lock);
> +}
…

Under which circumstances would you become interested to apply a call
like “scoped_guard(mutex, &lif->adev_lock)”?
https://elixir.bootlin.com/linux/v6.16/source/include/linux/mutex.h#L225

Regards,
Markus





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux