]> git.itanic.dy.fi Git - linux-stable/commit
xen-blkback: replace work_pending with work_busy in purge_persistent_gnt()
authorBob Liu <bob.liu@oracle.com>
Wed, 22 Jul 2015 06:40:10 +0000 (14:40 +0800)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 15 Sep 2015 17:56:47 +0000 (13:56 -0400)
commit92eea3808638b5cbce8b542135892cf15e4ae0ad
treecf39be6fa20e1f888b56e1dccf55c3eb5b912572
parent71ae6a566657e8df4f8797ef91d6cf1a0e1bc7e4
xen-blkback: replace work_pending with work_busy in purge_persistent_gnt()

[ Upstream commit 53bc7dc004fecf39e0ba70f2f8d120a1444315d3 ]

The BUG_ON() in purge_persistent_gnt() will be triggered when previous purge
work haven't finished.

There is a work_pending() before this BUG_ON, but it doesn't account if the work
is still currently running.

CC: stable@vger.kernel.org
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/block/xen-blkback/blkback.c