Ocfs2 updates for 2.6.26-rc1
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest62 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/62 | ocfs2: Move slot map access into slot_map.cfs/ fs/ fs/ +2 more | +55 | 0 replies | |
| 2/62 | ocfs2: Make ocfs2_slot_info private.fs/ fs/ fs/ +1 more | +74 | 0 replies | |
| 3/62 | ocfs2: Change the recovery map to an array of node numbers.fs/ fs/ fs/ +4 more | +182 | 0 replies | |
| 4/62 | ocfs2: slot_map I/O based on max_slots.fs/ | +108 | 0 replies | |
| 5/62 | ocfs2: De-magic the in-memory slot map.fs/ fs/ fs/ +1 more | +77 | 0 replies | |
| 6/62 | ocfs2: Define the contents of the slot_map file.fs/ fs/ | +20 | 0 replies | |
| 7/62 | ocfs2: New slot map formatfs/ fs/ fs/ | +133 | 0 replies | |
| 8/62 | ocfs2: Separate out dlm lock functions.fs/ fs/ fs/ +3 more | +179 | 0 replies | |
| 9/62 | ocfs2: Use global DLM_ constants in generic code.fs/ fs/ fs/ | +147 | 0 replies | |
| 10/62 | ocfs2: Use -errno instead of dlm_status for ocfs2_dlm_lock/unlock() API.fs/ fs/ fs/ | +188 | 0 replies | |
| 11/62 | ocfs2: Create the lock status block union.fs/ fs/ fs/ +1 more | +47 | 0 replies | |
| 12/62 | ocfs2: Introduce the new ocfs2_cluster_connect/disconnect() API.fs/ fs/ fs/ +5 more | +221 | 0 replies | |
| 13/62 | ocfs2: Abstract out node number queries.fs/ fs/ fs/ +2 more | +30 | 0 replies | |
| 14/62 | ocfs2: Move o2hb functionality into the stack glue.fs/ fs/ fs/ +5 more | +62 | 0 replies | |
| 15/62 | ocfs2: Fill node number during cluster stack initfs/ fs/ | +12 | 0 replies | |
| 16/62 | ocfs2: Remove CANCELGRANT from the view of dlmglue.fs/ fs/ fs/ | +188 | 0 replies | |
| 17/62 | ocfs2: handle async EAGAIN from NOQUEUE requestfs/ | +23 | 0 replies | |
| 18/62 | ocfs2: Abstract out a debugging function for underlying dlms.fs/ fs/ fs/ | +7 | 0 replies | |
| 19/62 | ocfs2: Clean up stackglue initializationfs/ fs/ fs/ +2 more | +9 | 0 replies | |
| 20/62 | ocfs2: Split o2cb code from generic stack functions.fs/ | +144 | 0 replies | |
| 21/62 | ocfs2: Create ocfs2_stack_operations and split out the o2cb stack.fs/ fs/ fs/ +1 more | +532 | 0 replies | |
| 22/62 | ocfs2: Break out stackglue into modules.fs/ fs/ fs/ +4 more | +297 | 0 replies | |
| 23/62 | ocfs2: Create stack glue sysfs files.fs/ | +120 | 0 replies | |
| 24/62 | ocfs2: Add the USERSPACE_STACK incompat bit.fs/ fs/ fs/ | +134 | 0 replies | |
| 25/62 | ocfs2: Add the 'cluster_stack' sysfs file.fs/ fs/ fs/ | +104 | 0 replies | |
| 26/62 | ocfs2: Add the user stack module.fs/ | +38 | 0 replies | |
| 27/62 | ocfs2: Add the ocfs2_control misc device.fs/ | +183 | 0 replies | |
| 28/62 | ocfs2: Start the ocfs2_control handshake.fs/ | +139 | 0 replies | |
| 29/62 | ocfs2: Introduce the DOWN message to ocfs2_controlfs/ | +89 | 0 replies | |
| 30/62 | ocfs2: Add the local node id to the handshake.fs/ | +173 | 0 replies | |
| 31/62 | ocfs2: Add the 'set version' message to the ocfs2_control device.fs/ | +119 | 0 replies | |
| 32/62 | ocfs2: add fsdlm to stackgluefs/ fs/ fs/ | +243 | 0 replies | |
| 33/62 | ocfs2: Change mlog_bug_on to BUG_ON in ocfs2_lockid.hfs/ | +1 | 0 replies | |
| 34/62 | ocfs2: Add kbuild for ocfs2_stack_user.kofs/ | +6 | 0 replies | |
| 35/62 | ocfs2: Allow selection of cluster plug-ins.fs/ fs/ | +32 | 0 replies | |
| 36/62 | ocfs2: Document /sys/fs/ocfs2Documentation/ | +89 | 0 replies | |
| 37/62 | ocfs2/dlm: Rename slabcache dlm_mle_cache to o2dlm_mlefs/ fs/ | +4 | 0 replies | |
| 38/62 | ocfs2/dlm: Create slabcaches for lock and lockresfs/ fs/ fs/ +1 more | +99 | 0 replies | |
| 39/62 | ocfs2/dlm: Link all lockres' to a tracking listfs/ fs/ fs/ | +26 | 0 replies | |
| 40/62 | ocfs2/dlm: Create debugfs dirsfs/ fs/ fs/ +1 more | +125 | 0 replies | |
| 41/62 | ocfs2/dlm: Dump the dlm state in a debugfs filefs/ fs/ fs/ +1 more | +325 | 0 replies | |
| 42/62 | ocfs2/dlm: Dumps the lockres' into a debugfs filefs/ fs/ | +255 | 0 replies | |
| 43/62 | ocfs2/dlm: Move struct dlm_master_list_entry to dlmcommon.hfs/ fs/ | +35 | 0 replies | |
| 44/62 | ocfs2/dlm: Dumps the mles into a debugfs filefs/ fs/ | +120 | 0 replies | |
| 45/62 | ocfs2/dlm: Dumps the purgelist into a debugfs filefs/ fs/ | +72 | 0 replies | |
| 46/62 | ocfs2/dlm: Move dlm_print_one_mle() from dlmmaster.c to dlmdebug.cfs/ fs/ fs/ | +85 | 0 replies | |
| 47/62 | ocfs2/dlm: Fix lockname in lockres print functionfs/ | +51 | 0 replies | |
| 48/62 | ocfs2/dlm: Cleanup lockres printfs/ | +11 | 0 replies | |
| 49/62 | ocfs2: Reconnect after idle time out.fs/ fs/ | +38 | 0 replies | |
| 50/62 | sysfs: Allow removal of symlinks in the sysfs rootfs/ | +8 | 0 replies | |
| 51/62 | ocfs2: Move /sys/o2cb to /sys/fs/o2cbDocumentation/ Documentation/ Documentation/ +1 more | +40 | 0 replies | |
| 52/62 | ocfs2: Add support for cross extent blockfs/ | +325 | 0 replies | |
| 53/62 | ocfs2: Enable cross extent block merge.fs/ | +86 | 0 replies | |
| 54/62 | ocfs2: Add a new parameter for ocfs2_reserve_suballoc_bitsfs/ | +18 | 0 replies | |
| 55/62 | ocfs2: Add ac_alloc_slot in ocfs2_alloc_contextfs/ fs/ fs/ | +4 | 0 replies | |
| 56/62 | ocfs2: Add inode stealing for ocfs2_reserve_new_inodefs/ fs/ fs/ +3 more | +116 | 0 replies | |
| 57/62 | fs/ocfs2/aops.c: test for IS_ERR rather than 0fs/ | +3 | 0 replies | |
| 58/62 | ocfs2: Improve rename lockingfs/ | +1 | 0 replies | |
| 59/62 | ocfs2: Convert ocfs2 over to unlocked_ioctlfs/ fs/ fs/ | +6 | 0 replies | |
| 60/62 | ocfs2: Use BUG_ONfs/ fs/ | +2 | 0 replies | |
| 61/62 | ocfs2: Put tree in MAINTAINERSMAINTAINERS | +1 | 0 replies | |
| 62/62 | ocfs2/cluster: Get rid of arguments to the timeout routinesfs/ | +20 | 0 replies |
Reviews trailers per patch
2 of 62 patches have a Reviewed-by or Acked-by.
| Patch | Joel Becker | Greg Kroah-Hartman |
|---|---|---|
| 1/62 | ||
| 2/62 | ||
| 3/62 | ||
| 4/62 | ||
| 5/62 | ||
| 6/62 | ||
| 7/62 | ||
| 8/62 | ||
| 9/62 | ||
| 10/62 | ||
| 11/62 | ||
| 12/62 | ||
| 13/62 | ||
| 14/62 | ||
| 15/62 | R-b | |
| 16/62 | ||
| 17/62 | ||
| 18/62 | ||
| 19/62 | ||
| 20/62 | ||
| 21/62 | ||
| 22/62 | ||
| 23/62 | ||
| 24/62 | ||
| 25/62 | ||
| 26/62 | ||
| 27/62 | ||
| 28/62 | ||
| 29/62 | ||
| 30/62 | ||
| 31/62 | ||
| 32/62 | ||
| 33/62 | ||
| 34/62 | ||
| 35/62 | ||
| 36/62 | ||
| 37/62 | ||
| 38/62 | ||
| 39/62 | ||
| 40/62 | ||
| 41/62 | ||
| 42/62 | ||
| 43/62 | ||
| 44/62 | ||
| 45/62 | ||
| 46/62 | ||
| 47/62 | ||
| 48/62 | ||
| 49/62 | ||
| 50/62 | A-b | |
| 51/62 | ||
| 52/62 | ||
| 53/62 | ||
| 54/62 | ||
| 55/62 | ||
| 56/62 | ||
| 57/62 | ||
| 58/62 | ||
| 59/62 | ||
| 60/62 | ||
| 61/62 | ||
| 62/62 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/62] Ocfs2 updates for 2.6.26-rc1
The following series of patches comprises the bulk of our outstanding changes for Ocfs2.
Aside from the usual set of cleanups and fixes that were inappropriate for 2.6.25, there are a few highlights:
The '/sys/o2cb' directory has been moved to '/sys/fs/o2cb'. The new location meshes better with modern sysfs layout. A symbolic link has been placed in the old location so as to not break old versions of ocfs2-tools. New versions of ocfs2-tools know to look in /sys/fs/o2cb. When an appropriate amount of time has passed (decided to be two years), we can remove the link. This change required a small patch to sysfs (entirely external to Ocfs2) which is included here with the appropriate 'Acked-by' lines.
Inode allocation in Ocfs2 has been modified to better handle an annoying corner case. When a node's local inode allocator fills up, it attempts to grow the allocator by adding an inode group. This might be impossible though, if the main file system bitmap is too full or fragmented to provide the required space. This used to be treated as an ENOSPC condition, but with the addition of Tao's "inode stealing" patches, the allocation code will attempt to allocate from other node's inode allocators before throwing an error.
Merging of unwritten extents has also undergone an incremental but significant improvement - extents can now be merged between leaf nodes. This ensures that the allocation btree stays as compact as possible, even if previous write patterns had caused it to fragment. Thanks again goes to Tao for this improvement.
Sunil has improved our ability to debug the Ocfs2 DLM by allowing us to track DLM state via a set of debugfs files. It's now possible to get a point-in-time view of master list entries, lock resource states and more. Debugfs.ocfs2 has been patched to make this process even easier.
And finally, we have Joel's work to allow Ocfs2 to use userspace cluster stacks. This series of patches is the last step in a multi-year process of seperating the Ocfs2 file system code from the underlying cluster stack. The file system is now cluster stack agnostic. Users can choose between the "o2cb" stack which is comprised of the traditional Ocfs2 cluster components (including fs/ocfs2/dlm, also referred to as "o2dlm") or the new "user" cluster stack. The "user" cluster stack requires a userspace component to communicate node membership information to the file system via a misc device. In "user" cluster stack mode, Dave Teigland's dlm (fs/dlm) is used as it already contains a cluster stack agnostic userspace API.
This all has several benefits. The most obvious is that we now get to share code and maintenance cost with other cluster-related projects instead of re-implementing cluster and dlm features in parallel. Additionally, Ocfs2 users can now run the cluster stack of their choice. For example, while we anticipate that some users will want to stick with o2cb for it's simplicity of setup and use, many will want access to some of the advanced features (clustered volume management, hardware fencing, service failover, etc) that are already provided by most userspace cluster stacks. These patches allow for that sort of decision to be made.
Of course, all of this is 100% backwards compatible with old versions of Ocfs2-tools. Users only need to download a new version of Ocfs2-tools if they want to take advantage of the userspace cluster stack feature. An ocfs2-tools tree with code to enable userspace cluster stacks can be found at:
http://oss.oracle.com/git/?p=ocfs2-tools.git;a=shortlog;h=stack-user
Right now, the sole stack interface implemented in the toolchain is to Red Hat's "cluster" project. In time, we anticipate that ocfs2-tools will grow support for other cluster stacks, including linux-ha. Our thanks go to the folks involved in the "cluster" project. Their help and advice was instrumental to getting this together.
Finally, my apologies for the large e-mail. There's a lot of patches here and I wanted to make sure any interested parties had a good idea of what they represent.
--Mark
Git branch with these changes:
git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2.git upstream-linus
Diffstat and shortlog:
Documentation/ABI/obsolete/o2cb | 11 + Documentation/ABI/stable/o2cb | 10 + Documentation/ABI/testing/sysfs-ocfs2 | 89 +++ Documentation/feature-removal-schedule.txt | 10 + MAINTAINERS | 1 + fs/Kconfig | 26 + fs/ocfs2/Makefile | 14 +- fs/ocfs2/alloc.c | 465 +++++++++++++-- fs/ocfs2/aops.c | 6 +- fs/ocfs2/cluster/sys.c | 9 + fs/ocfs2/cluster/tcp.c | 96 ++-- fs/ocfs2/cluster/tcp_internal.h | 2 + fs/ocfs2/dlm/dlmcommon.h | 49 ++ fs/ocfs2/dlm/dlmdebug.c | 911 +++++++++++++++++++++++++--- fs/ocfs2/dlm/dlmdebug.h | 86 +++ fs/ocfs2/dlm/dlmdomain.c | 70 ++- fs/ocfs2/dlm/dlmlock.c | 22 +- fs/ocfs2/dlm/dlmmaster.c | 200 ++----- fs/ocfs2/dlmglue.c | 645 ++++++++++++-------- fs/ocfs2/dlmglue.h | 5 +- fs/ocfs2/file.c | 4 +- fs/ocfs2/heartbeat.c | 184 +------ fs/ocfs2/heartbeat.h | 17 +- fs/ocfs2/ioctl.c | 13 +- fs/ocfs2/ioctl.h | 3 +- fs/ocfs2/journal.c | 211 ++++++- fs/ocfs2/journal.h | 4 + fs/ocfs2/localalloc.c | 4 + fs/ocfs2/namei.c | 4 +- fs/ocfs2/ocfs2.h | 77 ++- fs/ocfs2/ocfs2_fs.h | 79 +++- fs/ocfs2/ocfs2_lockid.h | 2 +- fs/ocfs2/slot_map.c | 454 +++++++++++--- fs/ocfs2/slot_map.h | 32 +- fs/ocfs2/stack_o2cb.c | 420 +++++++++++++ fs/ocfs2/stack_user.c | 883 +++++++++++++++++++++++++++ fs/ocfs2/stackglue.c | 568 +++++++++++++++++ fs/ocfs2/stackglue.h | 261 ++++++++ fs/ocfs2/suballoc.c | 103 +++- fs/ocfs2/suballoc.h | 1 + fs/ocfs2/super.c | 208 ++++--- fs/sysfs/symlink.c | 9 +- 42 files changed, 5230 insertions(+), 1038 deletions(-) create mode 100644 Documentation/ABI/obsolete/o2cb create mode 100644 Documentation/ABI/stable/o2cb create mode 100644 Documentation/ABI/testing/sysfs-ocfs2 create mode 100644 fs/ocfs2/dlm/dlmdebug.h create mode 100644 fs/ocfs2/stack_o2cb.c create mode 100644 fs/ocfs2/stack_user.c create mode 100644 fs/ocfs2/stackglue.c create mode 100644 fs/ocfs2/stackglue.h
Andi Kleen (1):
ocfs2: Convert ocfs2 over to unlocked_ioctl
David Teigland (2):
ocfs2: handle async EAGAIN from NOQUEUE request
ocfs2: add fsdlm to stackglue
Jan Kara (1):
ocfs2: Improve rename locking
Jeff Mahoney (1):
ocfs2/cluster: Get rid of arguments to the timeout routines
Joel Becker (33):
ocfs2: Make ocfs2_slot_info private.
ocfs2: Change the recovery map to an array of node numbers.
ocfs2: slot_map I/O based on max_slots.
ocfs2: De-magic the in-memory slot map.
ocfs2: Define the contents of the slot_map file.
ocfs2: New slot map format
ocfs2: Separate out dlm lock functions.
ocfs2: Use global DLM_ constants in generic code.
ocfs2: Use -errno instead of dlm_status for ocfs2_dlm_lock/unlock() API.
ocfs2: Create the lock status block union.
ocfs2: Introduce the new ocfs2_cluster_connect/disconnect() API.
ocfs2: Abstract out node number queries.
ocfs2: Move o2hb functionality into the stack glue.
ocfs2: Remove CANCELGRANT from the view of dlmglue.
ocfs2: Abstract out a debugging function for underlying dlms.
ocfs2: Clean up stackglue initialization
ocfs2: Split o2cb code from generic stack functions.
ocfs2: Create ocfs2_stack_operations and split out the o2cb stack.
ocfs2: Break out stackglue into modules.
ocfs2: Create stack glue sysfs files.
ocfs2: Add the USERSPACE_STACK incompat bit.
ocfs2: Add the 'cluster_stack' sysfs file.
ocfs2: Add the user stack module.
ocfs2: Add the ocfs2_control misc device.
ocfs2: Start the ocfs2_control handshake.
ocfs2: Introduce the DOWN message to ocfs2_control
ocfs2: Add the local node id to the handshake.
ocfs2: Add the 'set version' message to the ocfs2_control device.
ocfs2: Change mlog_bug_on to BUG_ON in ocfs2_lockid.h
ocfs2: Add kbuild for ocfs2_stack_user.ko
ocfs2: Allow selection of cluster plug-ins.
ocfs2: Document /sys/fs/ocfs2
ocfs2: Put tree in MAINTAINERS
Julia Lawall (2):
fs/ocfs2/aops.c: test for IS_ERR rather than 0
ocfs2: Use BUG_ON
Mark Fasheh (4):
ocfs2: Move slot map access into slot_map.c
ocfs2: Fill node number during cluster stack init
sysfs: Allow removal of symlinks in the sysfs root
ocfs2: Move /sys/o2cb to /sys/fs/o2cb
Sunil Mushran (12):
ocfs2/dlm: Rename slabcache dlm_mle_cache to o2dlm_mle ocfs2/dlm: Create slabcaches for lock and lockres ocfs2/dlm: Link all lockres' to a tracking list ocfs2/dlm: Create debugfs dirs
ocfs2/dlm: Dump the dlm state in a debugfs file ocfs2/dlm: Dumps the lockres' into a debugfs file ocfs2/dlm: Move struct dlm_master_list_entry to dlmcommon.h ocfs2/dlm: Dumps the mles into a debugfs file ocfs2/dlm: Dumps the purgelist into a debugfs file ocfs2/dlm: Move dlm_print_one_mle() from dlmmaster.c to dlmdebug.c ocfs2/dlm: Fix lockname in lockres print function ocfs2/dlm: Cleanup lockres print
Tao Ma (6):
ocfs2: Reconnect after idle time out.
ocfs2: Add support for cross extent block
ocfs2: Enable cross extent block merge.
ocfs2: Add a new parameter for ocfs2_reserve_suballoc_bits
ocfs2: Add ac_alloc_slot in ocfs2_alloc_context
ocfs2: Add inode stealing for ocfs2_reserve_new_inode