linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hanging swapoff with HAVE_ARCH_SOFT_DIRTY=y
@ 2015-09-14  9:24 Martin Schwidefsky
  2015-09-14  9:24 ` [PATCH] mm/swapfile: mm/swapfile: fix swapoff vs. software dirty bits Martin Schwidefsky
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Schwidefsky @ 2015-09-14  9:24 UTC (permalink / raw)
  To: Cyrill Gorcunov, Andrew Morton, Michal Hocko; +Cc: linux-mm, Martin Schwidefsky

Greetings,

while implementing software dirty bits for s390 we noticed that the swapoff
command at shutdown caused the system to hang. After some debugging I found
the maybe_same_pte() function to be the cause of this.

The bug shows up for any configuration with CONFIG_HAVE_ARCH_SOFT_DIRTY=y
and CONFIG_MEM_SOFT_DIRTY=n. Currently this affects x86_64 only.

Martin Schwidefsky (1):
  mm/swapfile: fix swapoff with software dirty bits enabled

 mm/swapfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.9.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH] hanging swapoff with HAVE_ARCH_SOFT_DIRTY=y
@ 2015-09-17  8:58 Martin Schwidefsky
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Schwidefsky @ 2015-09-17  8:58 UTC (permalink / raw)
  To: Cyrill Gorcunov, Andrew Morton, Ingo Molnar, Michal Hocko
  Cc: linux-mm, Martin Schwidefsky

Greetings,

while implementing software dirty bits for s390 we noticed that the swapoff
command at shutdown caused the system to hang. After some debugging I found
the maybe_same_pte() function to be the cause of this.

The bug shows up for any configuration with CONFIG_HAVE_ARCH_SOFT_DIRTY=y
and CONFIG_MEM_SOFT_DIRTY=n. Currently this affects x86_64 only.

Martin Schwidefsky (1):
  mm/swapfile: fix swapoff vs. software dirty bits

 mm/swapfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
1.9.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-12-18  7:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-14  9:24 [PATCH] hanging swapoff with HAVE_ARCH_SOFT_DIRTY=y Martin Schwidefsky
2015-09-14  9:24 ` [PATCH] mm/swapfile: mm/swapfile: fix swapoff vs. software dirty bits Martin Schwidefsky
2015-12-17 16:08   ` Cyrill Gorcunov
2015-12-18  7:41     ` Martin Schwidefsky
  -- strict thread matches above, loose matches on Subject: below --
2015-09-17  8:58 [PATCH] hanging swapoff with HAVE_ARCH_SOFT_DIRTY=y Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).