From: Roger Pau Monne Date: Tue, 4 Feb 2014 10:26:14 +0000 (+0100) Subject: xen-blkback: fix shutdown race X-Git-Tag: v3.14-rc3~22^2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c05f3e3c85df1d89673e00cee7ece5ae4eb4c6ec;p=pandora-kernel.git xen-blkback: fix shutdown race Introduce a new variable to keep track of the number of in-flight requests. We need to make sure that when xen_blkif_put is called the request has already been freed and we can safely free xen_blkif, which was not the case before. Signed-off-by: Roger Pau Monné Cc: Konrad Rzeszutek Wilk Cc: David Vrabel Reviewed-by: Boris Ostrovsky Tested-by: Matt Rushton Reviewed-by: Matt Rushton Cc: Matt Wilson Cc: Ian Campbell Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed