Skip to contentSkip to conversation

zonefs changes for 5.19-rc1

GIT PULL Merged Damien Le Moal 3 participants 4 messages May 23, 2022 VFS

lore
Share & tools
lore
#0 lore raw

Linus,

The following changes since commit 19139539207934aef6335bdef09c9e4bd70d1808:

zonefs: Fix management of open zones (2022-04-21 08:37:35 +0900)

are available in the Git repository at:

ssh://[email protected]/pub/scm/linux/kernel/git/dlemoal/zonefs tags/zonefs-5.19-rc1

for you to fetch changes up to 31a644b3c2ae6d0c47e84614ded3ce9bef1adb7a:

documentation: zonefs: Document sysfs attributes (2022-04-26 14:53:06 +0900)

Note: I made a mistake during this PR preparation and inadvertantly deleted the for-5.19 branch used for this PR. I recreated it and prepared the PR using this newly pushed for-5.19 branch. All patches have been in linux-next for a while. I hope this does not trigger any problem on your end.

----------------------------------------------------------------
zonefs changes for 5.19-rc1

This set of patches improve zonefs open sequential file accounting and adds accounting for active sequential files to allow the user to handle the maximum number of active zones of an NVMe ZNS drive. sysfs attributes for both open and active sequential files are also added to facilitate access to this information from applications without resorting to inspecting the block device limits.

----------------------------------------------------------------
Damien Le Moal (6):
zonefs: Rename super block information fields
zonefs: Always do seq file write open accounting
zonefs: Export open zone resource information through sysfs
zonefs: Add active seq file accounting
documentation: zonefs: Cleanup the mount options section
documentation: zonefs: Document sysfs attributes

 Documentation/filesystems/zonefs.rst |  52 +++++++++-
 fs/zonefs/Makefile                   |   2 +-
 fs/zonefs/super.c                    | 186 ++++++++++++++++++++++++++---------
 fs/zonefs/sysfs.c                    | 139 ++++++++++++++++++++++++++
 fs/zonefs/zonefs.h                   |  18 +++-
 5 files changed, 344 insertions(+), 53 deletions(-)
 create mode 100644 fs/zonefs/sysfs.c
#1 lore raw
Quoted 5 lines · Damien Le Moal

Note: I made a mistake during this PR preparation and inadvertantly deleted the for-5.19 branch used for this PR. I recreated it and prepared the PR using this newly pushed for-5.19 branch. All patches have been in linux-next for a while. I hope this does not trigger any problem on your end.

Grr.

That seems to be the cause of repeated commits, which in turn then caused conflicts because you had further changes.

IOW, I already had gotten

zonefs: Fix management of open zones
zonefs: Clear inode information flags on inode creation

from the block tree (your commits), and your branch now had different copies of those commits.

And you don't actually list those commits, which makes me think that you then did some manual editing of the pull request.

The duplicate commits with identical contents then caused commit 87c9ce3ffec9 ("zonefs: Add active seq file accounting") to show as a conflict, because the different branches did *some* things the same, but then that commit added other changes.

And honestly, I think that commit is buggy.

In particular, notice how the locking changes in that commit means that zonefs_init_file_inode() now always returns 0, even if zonefs_zone_mgmt() failed with an error.

The error cause it to skip "zonefs_account_active()", but then it returns success anyway.

Was that really intentional?

I've merged this - with that apparent bug and all - because maybe it *was* intentional. But please double-check and confirm that you really intended zonefs_init_file_inode() to always return success, unlike the old behavior.

Linus

#2 lore raw
Quoted 15 lines · Linus Torvalds
Quoted 5 lines · Damien Le Moal

Note: I made a mistake during this PR preparation and inadvertantly deleted the for-5.19 branch used for this PR. I recreated it and prepared the PR using this newly pushed for-5.19 branch. All patches have been in linux-next for a while. I hope this does not trigger any problem on your end.

Grr.

That seems to be the cause of repeated commits, which in turn then caused conflicts because you had further changes.

IOW, I already had gotten

Quoted 8 lines

zonefs: Fix management of open zones
zonefs: Clear inode information flags on inode creation

from the block tree (your commits), and your branch now had different copies of those commits.

And you don't actually list those commits, which makes me think that you then did some manual editing of the pull request.

Yes I did. I really messed up. My apologies about that.

Quoted 8 lines

The duplicate commits with identical contents then caused commit 87c9ce3ffec9 ("zonefs: Add active seq file accounting") to show as a conflict, because the different branches did *some* things the same, but then that commit added other changes.

And honestly, I think that commit is buggy.

Quoted 8 lines

In particular, notice how the locking changes in that commit means that zonefs_init_file_inode() now always returns 0, even if zonefs_zone_mgmt() failed with an error.

The error cause it to skip "zonefs_account_active()", but then it returns success anyway.

Was that really intentional?

Absolutely not. That is definitely a bug. Will send a fix for that. Thank you for catching this.

Quoted 7 lines

I've merged this - with that apparent bug and all - because maybe it *was* intentional. But please double-check and confirm that you really intended zonefs_init_file_inode() to always return success, unlike the old behavior.

Linus

Signature · 2 lines
Damien Le Moal
Western Digital Research
merge bot Merged
#3 lore raw
In reply to Damien Le Moal
The pull request you sent on Mon, 23 May 2022 14:01:44 +0900:

The pull request you sent on Mon, 23 May 2022 14:01:44 +0900:

Quoted 1 line

ssh://[email protected]/pub/scm/linux/kernel/git/dlemoal/zonefs tags/zonefs-5.19-rc1

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/140e40e39a29c7dbc188d9b43831c3d5e089c960

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html