Skip to content

Commit

Permalink
Rebase increase-reclaim-speed.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Jun 5, 2022
1 parent af0cd32 commit f157a99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions increase-reclaim-speed.patch
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ index 5c83d41..2c2faa7 100644
@@ -372,10 +378,13 @@
list_del(&entry->list);
spin_unlock_irqrestore(&gnttab_list_lock, flags);
if (_gnttab_end_foreign_access_ref(entry->ref, entry->ro)) {
if (_gnttab_end_foreign_access_ref(entry->ref)) {
+ uint64_t ret = atomic64_sub_return(1, &deferred_count);
put_free_entry(entry->ref);
- pr_debug("freeing g.e. %#x (pfn %#lx)\n",
Expand Down Expand Up @@ -96,7 +96,7 @@ index 5c83d41..2c2faa7 100644
+ pr_debug("Freed %zu references", freed);
}

static void gnttab_add_deferred(grant_ref_t ref, bool readonly,
static void gnttab_add_deferred(grant_ref_t ref, struct page *page)
@@ -402,7 +412,7 @@
{
struct deferred_entry *entry;
Expand Down Expand Up @@ -129,7 +129,7 @@ index 5c83d41..2c2faa7 100644
+
int gnttab_try_end_foreign_access(grant_ref_t ref)
{
int ret = _gnttab_end_foreign_access_ref(ref, 0);
int ret = _gnttab_end_foreign_access_ref(ref);
--
Sincerely,
Demi Marie Obenour (she/her/hers)
Expand Down

0 comments on commit f157a99

Please sign in to comment.