Patch "xen/scsiback: correct frontend counting" has been added to the 4.4-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
xen/scsiback: correct frontend counting
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
xen-scsiback-correct-frontend-counting.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
f285aa8db7cc4432c1a03f8b55ff34fe96317c11Mon Sep 17 00:00:00 2001
From: Juergen Gross <[email protected]>
Date: Mon, 8 Feb 2016 15:30:18 +0100
Subject: xen/scsiback: correct frontend counting
From: Juergen Gross <[email protected]>
commit f285aa8db7cc4432c1a03f8b55ff34fe96317c11 upstream.
When adding a new frontend to xen-scsiback don't decrement the number of active frontends in case of no error. Doing so results in a failure when trying to remove the xen-pvscsi nexus even if no domain is using it.
--- drivers/xen/xen-scsiback.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/xen/xen-scsiback.c +5 -5
@@ -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; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/xen-scsiback-correct-frontend-counting.patch