Make PageWriteback use the PageLocked optimisation
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest11 patches 4 repliesIn review
- v25 patches 2 repliesSuperseded
- v12 patches 7 repliesSuperseded
Changes in v3 from the cover letter
- Added implementations of clear_bit_unlock_is_negative_byte() to architectures which need it
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | alpha: Add clear_bit_unlock_is_negative_byte implementationarch/ | +23 | 0 replies | |
| 2/11 | ia64: Add clear_bit_unlock_is_negative_byte implementationarch/ | +20 | 1 reply | |
| 3/11 | m68k: Add clear_bit_unlock_is_negative_byte implementationarch/ | +7 | 0 replies | |
| 4/11 | mips: Add clear_bit_unlock_is_negative_byte implementationarch/ | +7 | 0 replies | |
| 5/11 | riscv: Add clear_bit_unlock_is_negative_byte implementationarch/ | +7 | 0 replies | |
| 6/11 | s390: Add clear_bit_unlock_is_negative_byte implementationarch/ | +9 | 0 replies | |
| 7/11 | mm: Remove definition of clear_bit_unlock_is_negative_bytemm/ | +0 | 0 replies | |
| 8/11 | mm: Move PG_writeback into the bottom byteinclude/ mm/ | +5 | 0 replies | |
| 9/11 | mm: Convert writeback BUG to WARN_ONmm/ mm/ | +6 | 1 reply | |
| 10/11 | mm: Use clear_bit_unlock_is_negative_byte for PageWritebackinclude/ mm/ mm/ | +23 | 0 replies | |
| 11/11 | mm: Remove TestClearPageWritebackinclude/ | +1 | 0 replies |
Reviews trailers per patch
3 of 11 patches have a Reviewed-by or Acked-by.
| Patch | William Kucharski | Jan Kara |
|---|---|---|
| 1/11 | ||
| 2/11 | ||
| 3/11 | ||
| 4/11 | ||
| 5/11 | ||
| 6/11 | ||
| 7/11 | R-b | |
| 8/11 | R-b | R-b |
| 9/11 | ||
| 10/11 | R-b | R-b |
| 11/11 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/11] Make PageWriteback use the PageLocked optimisation
From: "Matthew Wilcox (Oracle)" <[email protected]>
PageWaiters is used by PageWriteback and PageLocked (and no other page flags), so it makes sense to use the same codepaths that have already been optimised for PageLocked, even if there's probably no real performance benefit to be had.
Unfortunately, clear_bit_unlock_is_negative_byte() isn't present on every architecture, and the default implementation is only available in filemap.c while I want to use it in page-writeback.c. Rather than move the default implementation to a header file, I've done optimised implementations for alpha and ia64. I can't figure out optimised implementations for m68k, mips, riscv and s390, so I've just replicated the effect of the generic implementation in them. I leave it to the experts to fix that (... or convert over to using asm-generic/bitops/lock.h ...)
v3:
- Added implementations of clear_bit_unlock_is_negative_byte() to architectures which need it
v2: Rebased to 5.7-rc1
- Split up patches better
- Moved the BUG() from end_page_writeback() to __clear_page_writeback() as requested by Jan Kara.
- Converted the BUG() to WARN_ON()
- Removed TestClearPageWriteback
Matthew Wilcox (Oracle) (11):
alpha: Add clear_bit_unlock_is_negative_byte implementation
ia64: Add clear_bit_unlock_is_negative_byte implementation
m68k: Add clear_bit_unlock_is_negative_byte implementation
mips: Add clear_bit_unlock_is_negative_byte implementation
riscv: Add clear_bit_unlock_is_negative_byte implementation
s390: Add clear_bit_unlock_is_negative_byte implementation
mm: Remove definition of clear_bit_unlock_is_negative_byte
mm: Move PG_writeback into the bottom byte
mm: Convert writeback BUG to WARN_ON
mm: Use clear_bit_unlock_is_negative_byte for PageWriteback
mm: Remove TestClearPageWriteback
arch/alpha/include/asm/bitops.h | 23 ++++++++++++++++++ arch/ia64/include/asm/bitops.h | 20 ++++++++++++++++ arch/m68k/include/asm/bitops.h | 7 ++++++ arch/mips/include/asm/bitops.h | 7 ++++++ arch/riscv/include/asm/bitops.h | 7 ++++++ arch/s390/include/asm/bitops.h | 9 +++++++ include/linux/page-flags.h | 8 +++---- mm/filemap.c | 41 ++++---------------------------- mm/page-writeback.c | 42 ++++++++++++++++++++------------- 9 files changed, 107 insertions(+), 57 deletions(-)
Signature · 1 line
2.25.1