From: Jason Gunthorpe <jgg@nvidia.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: vkoul@kernel.org, Dan Williams <dan.j.williams@intel.com>,
dmaengine@vger.kernel.org, dan.carpenter@oracle.com
Subject: Re: [PATCH v8 5/8] dmaengine: idxd: fix wq conf_dev 'struct device' lifetime
Date: Tue, 30 Mar 2021 14:36:25 -0300 [thread overview]
Message-ID: <20210330173625.GV2356281@nvidia.com> (raw)
In-Reply-To: <161668770006.2670112.1315353645420208591.stgit@djiang5-desk3.ch.intel.com>
On Thu, Mar 25, 2021 at 08:55:00AM -0700, Dave Jiang wrote:
> The devm managed lifetime is incompatible with 'struct device' objects that
> resides in idxd context. This is one of the series that clean up the idxd
> driver 'struct device' lifetime.
don't repeat in every commit message. Each message should explain why
each patch exists.
>
> static inline bool is_dsa_dev(struct device *dev)
> {
> @@ -273,6 +274,23 @@ static inline bool is_idxd_dev(struct device *dev)
> return is_dsa_dev(dev) || is_iax_dev(dev);
> }
>
> +static inline bool is_idxd_wq_dev(struct device *dev)
> +{
> + return dev->type == &idxd_wq_device_type;
> +}
Wrong indenting here
> diff --git a/drivers/dma/idxd/init.c b/drivers/dma/idxd/init.c
> index 158f9e0158a3..1890a1c15977 100644
> +++ b/drivers/dma/idxd/init.c
> @@ -136,7 +136,7 @@ static int idxd_setup_interrupts(struct idxd_device *idxd)
> return 0;
>
> err_wq_irqs:
> - while (--i) {
> + while (--i >= 0) {
This looks like another patch ?
Jason
next prev parent reply other threads:[~2021-03-30 17:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-25 15:54 [PATCH v8 0/8] idxd 'struct device' lifetime handling fixes Dave Jiang
2021-03-25 15:54 ` [PATCH v8 1/8] dmaengine: idxd: fix dma device lifetime Dave Jiang
2021-03-25 15:54 ` [PATCH v8 2/8] dmaengine: idxd: cleanup pci interrupt vector allocation management Dave Jiang
2021-03-25 15:54 ` [PATCH v8 3/8] dmaengine: idxd: removal of pcim managed mmio mapping Dave Jiang
2021-03-25 15:54 ` [PATCH v8 4/8] dmaengine: idxd: fix idxd conf_dev 'struct device' lifetime Dave Jiang
2021-03-25 15:55 ` [PATCH v8 5/8] dmaengine: idxd: fix wq " Dave Jiang
2021-03-30 17:36 ` Jason Gunthorpe [this message]
2021-03-25 15:55 ` [PATCH v8 6/8] dmaengine: idxd: fix engine conf_dev lifetime Dave Jiang
2021-03-25 15:55 ` [PATCH v8 7/8] dmaengine: idxd: fix group " Dave Jiang
2021-03-25 15:55 ` [PATCH v8 8/8] dmaengine: idxd: fix cdev setup and free device lifetime issues Dave Jiang
2021-03-30 17:45 ` [PATCH v8 0/8] idxd 'struct device' lifetime handling fixes Jason Gunthorpe
2021-03-30 17:58 ` Dave Jiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210330173625.GV2356281@nvidia.com \
--to=jgg@nvidia.com \
--cc=dan.carpenter@oracle.com \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.