summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/block/xen-blkback
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/block/xen-blkback')
-rw-r--r--kernel/drivers/block/xen-blkback/blkback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/block/xen-blkback/blkback.c b/kernel/drivers/block/xen-blkback/blkback.c
index 713fc9ff1..3e9ec9523 100644
--- a/kernel/drivers/block/xen-blkback/blkback.c
+++ b/kernel/drivers/block/xen-blkback/blkback.c
@@ -362,8 +362,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;
}