Skip to contentSkip to conversation

mm-swap-fix-race-on-swap_info-reuse-between-swapoff-and-swapon-fix.patch removed from -mm tree

folded-merged [email protected] 1 participant 1 message Jan 31, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: [folded-merged] mm-swap-fix-race-on-swap_info-reuse-between-swapoff-and-swapon-fix.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 31 Jan 2014 12:36:36 -0800

The patch titled
Subject: mm-swap-fix-race-on-swap_info-reuse-between-swapoff-and-swapon-fix
has been removed from the -mm tree. Its filename was
mm-swap-fix-race-on-swap_info-reuse-between-swapoff-and-swapon-fix.patch

This patch was dropped because it was folded into mm-swap-fix-race-on-swap_info-reuse-between-swapoff-and-swapon.patch

------------------------------------------------------
From: Andrew Morton <[email protected]>
Subject: mm-swap-fix-race-on-swap_info-reuse-between-swapoff-and-swapon-fix

tidy up code comment

Cc Hugh Dickins <[email protected]>
Cc Weijie Yang <[email protected]>

---

 mm/swapfile.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
mm/swapfile.c renamed from mm/swapfile.c~mm-swap-fix-race-on-swap_info-reuse-between-swapoff-and-swapon-fix +4 -4
diff -puN mm/swapfile.c~mm-swap-fix-race-on-swap_info-reuse-between-swapoff-and-swapon-fix mm/swapfile.c
@@ -1949,10 +1949,10 @@ SYSCALL_DEFINE1(swapoff, const char __us
 	filp_close(swap_file, NULL);
 
 	/*
-	* clear SWP_USED flag after all resources freed
-	* so that swapon can reuse this swap_info in alloc_swap_info() safely
-	* it is ok to not hold p->lock after we cleared its SWP_WRITEOK
-	*/
+	 * Clear the SWP_USED flag after all resources are freed so that swapon
+	 * can reuse this swap_info in alloc_swap_info() safely.  It is ok to
+	 * not hold p->lock after we cleared its SWP_WRITEOK.
+	 */
 	spin_lock(&swap_lock);
 	p->flags = 0;
 	spin_unlock(&swap_lock);

_

Patches currently in -mm which might be from [email protected] are

origin.patch
arch-alpha-kernel-systblss-remove-debug-check.patch
i-need-old-gcc.patch numa-mem-hotplug-initialize-numa_kernel_nodes-in-numa_clear_kernel_node_hotplug-fix.patch input-route-kbd-leds-through-the-generic-leds-layer.patch ocfs2-fix-ocfs2_sync_file-if-filesystem-is-readonly-fix.patch ocfs2-free-allocated-clusters-if-error-occurs-after-ocfs2_claim_clusters-fix.patch mm.patch mm-swap-fix-race-on-swap_info-reuse-between-swapoff-and-swapon.patch kmod-run-usermodehelpers-only-on-cpus-allowed-for-kthreadd-v2-fix.patch kmod-run-usermodehelpers-only-on-cpus-allowed-for-kthreadd-v2-checkpatch-fixes.patch linux-next.patch
linux-next-git-rejects.patch
debugging-keep-track-of-page-owners.patch journal_add_journal_head-debug.patch kernel-forkc-export-kernel_thread-to-modules.patch mutex-subsystem-synchro-test-module.patch
slab-leaks3-default-y.patch
put_bh-debug.patch