From: "ira.weiny" <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Leon Romanovsky <leon-2ukJVAZIZ/Y@public.gmane.org>
Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH] IB/core: Fix missed clean call in registration path
Date: Sun, 21 Feb 2016 20:13:36 -0500 [thread overview]
Message-ID: <20160222011334.GA24657@phlsvsds.ph.intel.com> (raw)
In-Reply-To: <1456071146-28101-1-git-send-email-leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
On Sun, Feb 21, 2016 at 06:12:26PM +0200, Leon Romanovsky wrote:
> In case of failure returned from query function in
> IB device registration, we need to clean IB cache which
> was missed.
>
> This change fixes it.
>
> Fixes: 3e153a93a1c1 ('IB/core: Save the device attributes on the device
> structure')
> Signed-off-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Reviewed-by: Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> ---
> drivers/infiniband/core/device.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c
> index 00da80e..94b80a5 100644
> --- a/drivers/infiniband/core/device.c
> +++ b/drivers/infiniband/core/device.c
> @@ -358,6 +358,7 @@ int ib_register_device(struct ib_device *device,
> ret = device->query_device(device, &device->attrs, &uhw);
> if (ret) {
> printk(KERN_WARNING "Couldn't query the device attributes\n");
> + ib_cache_cleanup_one(device);
> goto out;
> }
>
> --
> 2.1.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-02-22 1:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-21 16:12 [PATCH] IB/core: Fix missed clean call in registration path Leon Romanovsky
[not found] ` <1456071146-28101-1-git-send-email-leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-02-22 1:13 ` ira.weiny [this message]
[not found] ` <20160222011334.GA24657-W4f6Xiosr+yv7QzWx2u06xL4W9x8LtSr@public.gmane.org>
2016-02-22 8:53 ` Leon Romanovsky
[not found] ` <20160222085327.GO30450-2ukJVAZIZ/Y@public.gmane.org>
2016-02-22 9:12 ` Or Gerlitz
[not found] ` <CAJ3xEMjVPQ6yiy4PHp2DDeygk9nBgvQJTB5EZ49ac0HUSgUdcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-02-22 9:25 ` Leon Romanovsky
2016-02-22 8:31 ` Sagi Grimberg
[not found] ` <56CAC744.9090809-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2016-03-03 22:03 ` Doug Ledford
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=20160222011334.GA24657@phlsvsds.ph.intel.com \
--to=ira.weiny-ral2jqcrhueavxtiumwx3w@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=leon-2ukJVAZIZ/Y@public.gmane.org \
--cc=leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox