linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mm/swapfile: release swap info when swap device is unpluged
@ 2022-06-15  7:02 liubo
  2022-06-15  7:02 ` [PATCH v2 1/2] mm/swapfile: Extract operations of resource release in the swapoff process liubo
  2022-06-15  7:02 ` [PATCH v2 2/2] mm/swapfile: release swap info when swap device is unpluged liubo
  0 siblings, 2 replies; 5+ messages in thread
From: liubo @ 2022-06-15  7:02 UTC (permalink / raw)
  To: akpm, linux-mm, linux-kernel
  Cc: ying.huang, willy, vbabka, surenb, peterx, neilb, naoya.horiguchi,
	minchan, linmiaohe, louhongxiang, linfeilong, liubo254

This series patch try to fix the problem that the resources
corresponding to swap are not effectively released when
the swap partition disk is hot-pluged.

1/2: Extract operations of resource release in the swapoff process.
2/2: release swap info when swap device is unpluged

This is a second version, which addressed some comments:
1. turn first patch into a two patch series. The first does the
code movement with no functional changes and the second does
the actual fix.

---
For v1, see: https://lore.kernel.org/linux-mm/20220528084941.28391-1-liubo254@huawei.com/
---

liubo (2):
  mm/swapfile: Extract operations of resource release in the swapoff
    process
  mm/swapfile: release swap info when swap device is unpluged

 mm/swapfile.c | 261 +++++++++++++++++++++++++++++++++++---------------
 1 file changed, 183 insertions(+), 78 deletions(-)

-- 
2.27.0



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

end of thread, other threads:[~2022-06-16  7:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-15  7:02 [PATCH v2 0/2] mm/swapfile: release swap info when swap device is unpluged liubo
2022-06-15  7:02 ` [PATCH v2 1/2] mm/swapfile: Extract operations of resource release in the swapoff process liubo
2022-06-15  7:02 ` [PATCH v2 2/2] mm/swapfile: release swap info when swap device is unpluged liubo
2022-06-15 11:22   ` Christoph Hellwig
2022-06-16  7:00     ` Miaohe Lin

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).