mbox series

[v2,0/2] mm/swapfile: release swap info when swap device is unpluged

Message ID 20220615070228.2858170-1-liubo254@huawei.com (mailing list archive)
Headers show
Series mm/swapfile: release swap info when swap device is unpluged | expand

Message

liubo June 15, 2022, 7:02 a.m. UTC
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(-)