summaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkfront.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2018-10-02 09:43:39 +0200
committerIngo Molnar <mingo@kernel.org>2018-10-02 09:43:39 +0200
commitb429f71bca5a4ddd914350a39572692e2ea211e0 (patch)
tree50cee6fb7b114ad89c778de87bcb44972b7326f5 /drivers/block/xen-blkfront.c
parentsched/topology: Make local variables static (diff)
parentsched/numa: Avoid task migration for small NUMA improvement (diff)
downloadlinux-b429f71bca5a4ddd914350a39572692e2ea211e0.tar.xz
linux-b429f71bca5a4ddd914350a39572692e2ea211e0.zip
Merge branch 'sched/urgent' into sched/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-rw-r--r--drivers/block/xen-blkfront.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index a71d817e900d..429d20131c7e 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -2670,8 +2670,8 @@ static void purge_persistent_grants(struct blkfront_info *info)
list_del(&gnt_list_entry->node);
gnttab_end_foreign_access(gnt_list_entry->gref, 0, 0UL);
rinfo->persistent_gnts_c--;
- __free_page(gnt_list_entry->page);
- kfree(gnt_list_entry);
+ gnt_list_entry->gref = GRANT_INVALID_REF;
+ list_add_tail(&gnt_list_entry->node, &rinfo->grants);
}
spin_unlock_irqrestore(&rinfo->ring_lock, flags);