From: Juergen Gross <jgross@suse.com>
To: Boris Ostrovsky <boris.ostrovsky@oracle.com>,
linux-kernel@vger.kernel.org, xen-devel@lists.xen.org,
konrad.wilk@oracle.com, david.vrabel@citrix.com
Cc: stable@vger.kernel.org
Subject: Re: [PATCH 1/2] xen/scsiback: correct frontend counting
Date: Fri, 5 Feb 2016 16:44:08 +0100 [thread overview]
Message-ID: <56B4C348.4060205@suse.com> (raw)
In-Reply-To: <56B4C2D6.6010107@oracle.com>
On 05/02/16 16:42, Boris Ostrovsky wrote:
>
>
> On 02/05/2016 08:21 AM, Juergen Gross wrote:
>> When adding a new frontend to xen-scsiback don't decrement the number
>> of active frontends in case of no error. Not doing so results in a
>
> I think you meant "Doing so".
I think so, too.
>
> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Thanks, Juergen
>
>
>> failure when trying to remove the xen-pvscsi nexus even if no domain
>> is using it.
>>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
>> Cc: stable@vger.kernel.org
>> ---
>> drivers/xen/xen-scsiback.c | 10 +++++-----
>> 1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/drivers/xen/xen-scsiback.c b/drivers/xen/xen-scsiback.c
>> index ad4eb10..51387d7 100644
>> --- a/drivers/xen/xen-scsiback.c
>> +++ b/drivers/xen/xen-scsiback.c
>> @@ -939,12 +939,12 @@ out:
>> spin_unlock_irqrestore(&info->v2p_lock, flags);
>> out_free:
>> - mutex_lock(&tpg->tv_tpg_mutex);
>> - tpg->tv_tpg_fe_count--;
>> - mutex_unlock(&tpg->tv_tpg_mutex);
>> -
>> - if (err)
>> + if (err) {
>> + mutex_lock(&tpg->tv_tpg_mutex);
>> + tpg->tv_tpg_fe_count--;
>> + mutex_unlock(&tpg->tv_tpg_mutex);
>> kfree(new);
>> + }
>> return err;
>> }
>
>
prev parent reply other threads:[~2016-02-05 15:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 13:15 [PATCH 0/2] xen/scsiback: correct two issues Juergen Gross
2016-02-05 13:21 ` [PATCH 1/2] xen/scsiback: correct frontend counting Juergen Gross
2016-02-05 13:21 ` [PATCH 2/2] xen/scsiback: avoid warnings when adding multiple LUNs to a domain Juergen Gross
2016-02-05 15:50 ` Boris Ostrovsky
2016-02-05 15:55 ` Boris Ostrovsky
2016-02-05 16:59 ` Juergen Gross
2016-02-05 17:24 ` Boris Ostrovsky
2016-02-08 12:28 ` Juergen Gross
2016-02-05 15:42 ` [PATCH 1/2] xen/scsiback: correct frontend counting Boris Ostrovsky
2016-02-05 15:44 ` Juergen Gross [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=56B4C348.4060205@suse.com \
--to=jgross@suse.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=xen-devel@lists.xen.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;
as well as URLs for NNTP newsgroup(s).