aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkback
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2015-07-27 11:58:41 -0600
committerJens Axboe <axboe@fb.com>2015-07-27 11:58:41 -0600
commite162b219ae6a64be353f254bd4ba1c9627c67749 (patch)
treeec048447cd9a28f5a4a73b8f2ea76289acdbf8d7 /drivers/block/xen-blkback
parentLinux 4.2-rc4 (diff)
parentxen-blkback: replace work_pending with work_busy in purge_persistent_gnt() (diff)
downloadlinux-dev-e162b219ae6a64be353f254bd4ba1c9627c67749.tar.xz
linux-dev-e162b219ae6a64be353f254bd4ba1c9627c67749.zip
Merge branch 'stable/for-jens-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen into for-linus
Konrad writes: "There are three bugs that have been found in the xen-blkfront (and backend). Two of them have the stable tree CC-ed. They have been found where an guest is migrating to a host that is missing 'feature-persistent' support (from one that has it enabled). We end up hitting an BUG() in the driver code."
Diffstat (limited to 'drivers/block/xen-blkback')
-rw-r--r--drivers/block/xen-blkback/blkback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c
index ced96777b677..954c0029fb3b 100644
--- a/drivers/block/xen-blkback/blkback.c
+++ b/drivers/block/xen-blkback/blkback.c
@@ -369,8 +369,8 @@ static void purge_persistent_gnt(struct xen_blkif *blkif)
return;
}
- if (work_pending(&blkif->persistent_purge_work)) {
- pr_alert_ratelimited("Scheduled work from previous purge is still pending, cannot purge list\n");
+ if (work_busy(&blkif->persistent_purge_work)) {
+ pr_alert_ratelimited("Scheduled work from previous purge is still busy, cannot purge list\n");
return;
}