Skip to content
Commit 92eea380 authored by Bob Liu's avatar Bob Liu Committed by Sasha Levin
Browse files

xen-blkback: replace work_pending with work_busy in purge_persistent_gnt()

[ Upstream commit 53bc7dc0

 ]

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: default avatarRoger Pau Monné <roger.pau@citrix.com>
Signed-off-by: default avatarBob Liu <bob.liu@oracle.com>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 71ae6a56
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment