From: "lindar_liu" <lindar_liu@usish.com>
To: 'XinHong Zhu' <zxh3737@163.com>, linux-scsi@vger.kernel.org
Subject: RE: [PATCH] [SCSI] pm80xx : no need for tag allocation when issuing the command of unregistering device
Date: Thu, 13 Feb 2014 12:41:48 +0800 [thread overview]
Message-ID: <014801cf2875$eda238f0$c8e6aad0$@com> (raw)
In-Reply-To: <1392263978-216-1-git-send-email-zxh3737@163.com>
On Thu, 2014-02-13 at 12:00 PM, XinHong Zhu wrote:
> In function pm8001_dev_gone_notify require a tag from bitmap resource and
> later don't free tag resource .So tag resource will be consume fully and
> following request can not be execed because of lack of tags . But in the
> function don't need use any tag to issue command of unregistering device .
>
> Signed-off-by: XinHong Zhu <zxh3737@163.com>
> ---
> drivers/scsi/pm8001/pm8001_sas.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/scsi/pm8001/pm8001_sas.c
> b/drivers/scsi/pm8001/pm8001_sas.c
> index f50ac44..ba3088c 100644
> --- a/drivers/scsi/pm8001/pm8001_sas.c
> +++ b/drivers/scsi/pm8001/pm8001_sas.c
> @@ -865,13 +865,11 @@ ex_err:
> static void pm8001_dev_gone_notify(struct domain_device *dev) {
> unsigned long flags = 0;
> - u32 tag;
> struct pm8001_hba_info *pm8001_ha;
> struct pm8001_device *pm8001_dev = dev->lldd_dev;
>
> pm8001_ha = pm8001_find_ha_by_dev(dev);
> spin_lock_irqsave(&pm8001_ha->lock, flags);
> - pm8001_tag_alloc(pm8001_ha, &tag);
> if (pm8001_dev) {
> u32 device_id = pm8001_dev->device_id;
>
Thanks for fix.
Acked-by: Lindar Liu <lindar_liu@usish.com>
> --
> 1.7.9
prev parent reply other threads:[~2014-02-13 4:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-13 3:59 [PATCH] [SCSI] pm80xx : no need for tag allocation when issuing the command of unregistering device XinHong Zhu
2014-02-13 4:41 ` lindar_liu [this message]
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='014801cf2875$eda238f0$c8e6aad0$@com' \
--to=lindar_liu@usish.com \
--cc=linux-scsi@vger.kernel.org \
--cc=zxh3737@163.com \
/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