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

liubo posted 2 patches 3 years, 10 months ago
mm/swapfile.c | 261 +++++++++++++++++++++++++++++++++++---------------
1 file changed, 183 insertions(+), 78 deletions(-)
[PATCH v2 0/2] mm/swapfile: release swap info when swap device is unpluged
Posted by liubo 3 years, 10 months ago
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