Message ID | 20240128-zonefs_nofs-v3-0-ae3b7c8def61@wdc.com (mailing list archive) |
---|---|
Headers | show |
Series | block: remove gfp_mask for blkdev_zone_mgmt() | expand |
On 29.01.24 08:52, Johannes Thumshirn wrote: > Fueled by the LSFMM discussion on removing GFP_NOFS initiated by Willy, > I've looked into the sole GFP_NOFS allocation in zonefs. As it turned out, > it is only done for zone management commands and can be removed. > > After digging into more callers of blkdev_zone_mgmt() I came to the > conclusion that the gfp_mask parameter can be removed alltogether. > > So this series switches all callers of blkdev_zone_mgmt() to either use > GFP_KERNEL where possible or grab a memalloc_no{fs,io} context. > > The final patch in this series is getting rid of the gfp_mask parameter. > > Link: https://lore.kernel.org/all/ZZcgXI46AinlcBDP@casper.infradead.org/ > > --- > Changes in v3: > - Fix build error after rebase in dm-zoned-metadata.c > - Link to v2: https://lore.kernel.org/r/20240125-zonefs_nofs-v2-0-2d975c8c1690@wdc.com > > Changes in v2: > - guard blkdev_zone_mgmt in dm-zoned-metadata.c with memalloc_noio context > - Link to v1: https://lore.kernel.org/r/20240123-zonefs_nofs-v1-0-cc0b0308ef25@wdc.com > > --- > Johannes Thumshirn (5): > zonefs: pass GFP_KERNEL to blkdev_zone_mgmt() call > dm: dm-zoned: guard blkdev_zone_mgmt with noio scope > btrfs: zoned: call blkdev_zone_mgmt in nofs scope > f2fs: guard blkdev_zone_mgmt with nofs scope > block: remove gfp_flags from blkdev_zone_mgmt > > block/blk-zoned.c | 19 ++++++++----------- > drivers/md/dm-zoned-metadata.c | 5 ++++- > drivers/nvme/target/zns.c | 5 ++--- > fs/btrfs/zoned.c | 35 +++++++++++++++++++++++++---------- > fs/f2fs/segment.c | 15 ++++++++++++--- > fs/zonefs/super.c | 2 +- > include/linux/blkdev.h | 2 +- > 7 files changed, 53 insertions(+), 30 deletions(-) > --- > base-commit: 615d300648869c774bd1fe54b4627bb0c20faed4 > change-id: 20240110-zonefs_nofs-dd1e22b2e046 > > Best regards, Hi Jens, now that every patch is reviewed, can you queue this series please? Thanks, Johannes
On Sun, 28 Jan 2024 23:52:15 -0800, Johannes Thumshirn wrote: > Fueled by the LSFMM discussion on removing GFP_NOFS initiated by Willy, > I've looked into the sole GFP_NOFS allocation in zonefs. As it turned out, > it is only done for zone management commands and can be removed. > > After digging into more callers of blkdev_zone_mgmt() I came to the > conclusion that the gfp_mask parameter can be removed alltogether. > > [...] Applied, thanks! [1/5] zonefs: pass GFP_KERNEL to blkdev_zone_mgmt() call commit: 9105ce591b424771b1502ef9836ca7953c3e0af4 [2/5] dm: dm-zoned: guard blkdev_zone_mgmt with noio scope commit: 218082010aceb40b5495ebc30028ede6e30ee755 [3/5] btrfs: zoned: call blkdev_zone_mgmt in nofs scope commit: d9d556755f16f6af8d1d8ebac38b83a9263394c5 [4/5] f2fs: guard blkdev_zone_mgmt with nofs scope commit: 147ec1c60e3273d21ea1f212c6636f231d6d2771 [5/5] block: remove gfp_flags from blkdev_zone_mgmt commit: 71f4ecdbb42addf82b01b734b122a02707fed521 Best regards,
Hello: This series was applied to jaegeuk/f2fs.git (dev) by Jens Axboe <axboe@kernel.dk>: On Sun, 28 Jan 2024 23:52:15 -0800 you wrote: > Fueled by the LSFMM discussion on removing GFP_NOFS initiated by Willy, > I've looked into the sole GFP_NOFS allocation in zonefs. As it turned out, > it is only done for zone management commands and can be removed. > > After digging into more callers of blkdev_zone_mgmt() I came to the > conclusion that the gfp_mask parameter can be removed alltogether. > > [...] Here is the summary with links: - [f2fs-dev,v3,1/5] zonefs: pass GFP_KERNEL to blkdev_zone_mgmt() call https://git.kernel.org/jaegeuk/f2fs/c/9105ce591b42 - [f2fs-dev,v3,2/5] dm: dm-zoned: guard blkdev_zone_mgmt with noio scope https://git.kernel.org/jaegeuk/f2fs/c/218082010ace - [f2fs-dev,v3,3/5] btrfs: zoned: call blkdev_zone_mgmt in nofs scope https://git.kernel.org/jaegeuk/f2fs/c/d9d556755f16 - [f2fs-dev,v3,4/5] f2fs: guard blkdev_zone_mgmt with nofs scope https://git.kernel.org/jaegeuk/f2fs/c/147ec1c60e32 - [f2fs-dev,v3,5/5] block: remove gfp_flags from blkdev_zone_mgmt https://git.kernel.org/jaegeuk/f2fs/c/71f4ecdbb42a You are awesome, thank you!