[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <063c5035-36d3-4b81-8ae6-b05cf9d27066@web.de>
Date: Mon, 15 Sep 2025 21:42:31 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Nathan Lynch <nathan.lynch@....com>, Wei Huang <wei.huang2@....com>,
dmaengine@...r.kernel.org, linux-pci@...r.kernel.org
Cc: LKML <linux-kernel@...r.kernel.org>, Bjorn Helgaas <bhelgaas@...gle.com>,
Mario Limonciello <mario.limonciello@....com>, Vinod Koul <vkoul@...nel.org>
Subject: Re: [PATCH RFC 08/13] dmaengine: sdxi: Context creation/removal,
descriptor submission
…
> +++ b/drivers/dma/sdxi/context.c
> @@ -0,0 +1,547 @@
…
> +static void sdxi_cxt_free(struct sdxi_cxt *cxt)
> +{
> + struct sdxi_dev *sdxi = cxt->sdxi;
> +
> + mutex_lock(&sdxi->cxt_lock);
> +
> + cleanup_cxt_tables(sdxi, cxt);
> + dma_pool_free(sdxi->cxt_ctl_pool, cxt->cxt_ctl, cxt->cxt_ctl_dma);
> + free_cxt(cxt);
> +
> + mutex_unlock(&sdxi->cxt_lock);
> +}
…
Under which circumstances would you become interested to apply a statement
like “guard(mutex)(&sdxi->cxt_lock);”?
https://elixir.bootlin.com/linux/v6.17-rc6/source/include/linux/mutex.h#L228
Regards,
Markus
Powered by blists - more mailing lists