ocfs2: Break out stackglue into modules.
We define the ocfs2_stack_plugin structure to represent a stack driver.
The o2cb stack code is split into stack_o2cb.c. This becomes the
ocfs2_stack_o2cb.ko module.
The stackglue generic functions are similarly split into the
ocfs2_stackglue.ko module. This module now provides an interface to
register drivers. The ocfs2_stack_o2cb driver registers itself. As
part of this interface, ocfs2_stackglue can load drivers on demand.
This is accomplished in ocfs2_cluster_connect().
ocfs2_cluster_disconnect() is now notified when a _hangup() is pending.
If a hangup is pending, it will not release the driver module and will
let _hangup() do that.
Signed-off-by:
Joel Becker <joel.becker@oracle.com>
Showing
- fs/ocfs2/Makefile 4 additions, 3 deletionsfs/ocfs2/Makefile
- fs/ocfs2/dlmglue.c 4 additions, 3 deletionsfs/ocfs2/dlmglue.c
- fs/ocfs2/dlmglue.h 1 addition, 1 deletionfs/ocfs2/dlmglue.h
- fs/ocfs2/stack_o2cb.c 33 additions, 8 deletionsfs/ocfs2/stack_o2cb.c
- fs/ocfs2/stackglue.c 214 additions, 24 deletionsfs/ocfs2/stackglue.c
- fs/ocfs2/stackglue.h 32 additions, 4 deletionsfs/ocfs2/stackglue.h
- fs/ocfs2/super.c 9 additions, 7 deletionsfs/ocfs2/super.c
Loading
Please register or sign in to comment