Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 1 | /* -*- mode: c; c-basic-offset: 8; -*- |
| 2 | * vim: noexpandtab sw=8 ts=8 sts=0: |
| 3 | * |
| 4 | * stack_o2cb.c |
| 5 | * |
| 6 | * Code which interfaces ocfs2 with the o2cb stack. |
| 7 | * |
| 8 | * Copyright (C) 2007 Oracle. All rights reserved. |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or |
| 11 | * modify it under the terms of the GNU General Public |
| 12 | * License as published by the Free Software Foundation, version 2. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | * General Public License for more details. |
| 18 | */ |
| 19 | |
Roel Kluin | 8a57a9d | 2009-08-06 16:07:50 -0700 | [diff] [blame] | 20 | #include <linux/kernel.h> |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 21 | #include <linux/crc32.h> |
Joel Becker | 286eaa9 | 2008-02-01 15:03:57 -0800 | [diff] [blame] | 22 | #include <linux/module.h> |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 23 | |
| 24 | /* Needed for AOP_TRUNCATED_PAGE in mlog_errno() */ |
| 25 | #include <linux/fs.h> |
| 26 | |
| 27 | #include "cluster/masklog.h" |
| 28 | #include "cluster/nodemanager.h" |
| 29 | #include "cluster/heartbeat.h" |
| 30 | |
| 31 | #include "stackglue.h" |
| 32 | |
| 33 | struct o2dlm_private { |
| 34 | struct dlm_eviction_cb op_eviction_cb; |
| 35 | }; |
| 36 | |
Joel Becker | 286eaa9 | 2008-02-01 15:03:57 -0800 | [diff] [blame] | 37 | static struct ocfs2_stack_plugin o2cb_stack; |
| 38 | |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 39 | /* These should be identical */ |
| 40 | #if (DLM_LOCK_IV != LKM_IVMODE) |
| 41 | # error Lock modes do not match |
| 42 | #endif |
| 43 | #if (DLM_LOCK_NL != LKM_NLMODE) |
| 44 | # error Lock modes do not match |
| 45 | #endif |
| 46 | #if (DLM_LOCK_CR != LKM_CRMODE) |
| 47 | # error Lock modes do not match |
| 48 | #endif |
| 49 | #if (DLM_LOCK_CW != LKM_CWMODE) |
| 50 | # error Lock modes do not match |
| 51 | #endif |
| 52 | #if (DLM_LOCK_PR != LKM_PRMODE) |
| 53 | # error Lock modes do not match |
| 54 | #endif |
| 55 | #if (DLM_LOCK_PW != LKM_PWMODE) |
| 56 | # error Lock modes do not match |
| 57 | #endif |
| 58 | #if (DLM_LOCK_EX != LKM_EXMODE) |
| 59 | # error Lock modes do not match |
| 60 | #endif |
| 61 | static inline int mode_to_o2dlm(int mode) |
| 62 | { |
| 63 | BUG_ON(mode > LKM_MAXMODE); |
| 64 | |
| 65 | return mode; |
| 66 | } |
| 67 | |
| 68 | #define map_flag(_generic, _o2dlm) \ |
| 69 | if (flags & (_generic)) { \ |
| 70 | flags &= ~(_generic); \ |
| 71 | o2dlm_flags |= (_o2dlm); \ |
| 72 | } |
| 73 | static int flags_to_o2dlm(u32 flags) |
| 74 | { |
| 75 | int o2dlm_flags = 0; |
| 76 | |
| 77 | map_flag(DLM_LKF_NOQUEUE, LKM_NOQUEUE); |
| 78 | map_flag(DLM_LKF_CANCEL, LKM_CANCEL); |
| 79 | map_flag(DLM_LKF_CONVERT, LKM_CONVERT); |
| 80 | map_flag(DLM_LKF_VALBLK, LKM_VALBLK); |
| 81 | map_flag(DLM_LKF_IVVALBLK, LKM_INVVALBLK); |
| 82 | map_flag(DLM_LKF_ORPHAN, LKM_ORPHAN); |
| 83 | map_flag(DLM_LKF_FORCEUNLOCK, LKM_FORCE); |
| 84 | map_flag(DLM_LKF_TIMEOUT, LKM_TIMEOUT); |
| 85 | map_flag(DLM_LKF_LOCAL, LKM_LOCAL); |
| 86 | |
| 87 | /* map_flag() should have cleared every flag passed in */ |
| 88 | BUG_ON(flags != 0); |
| 89 | |
| 90 | return o2dlm_flags; |
| 91 | } |
| 92 | #undef map_flag |
| 93 | |
| 94 | /* |
| 95 | * Map an o2dlm status to standard errno values. |
| 96 | * |
| 97 | * o2dlm only uses a handful of these, and returns even fewer to the |
| 98 | * caller. Still, we try to assign sane values to each error. |
| 99 | * |
| 100 | * The following value pairs have special meanings to dlmglue, thus |
| 101 | * the right hand side needs to stay unique - never duplicate the |
| 102 | * mapping elsewhere in the table! |
| 103 | * |
| 104 | * DLM_NORMAL: 0 |
| 105 | * DLM_NOTQUEUED: -EAGAIN |
| 106 | * DLM_CANCELGRANT: -EBUSY |
| 107 | * DLM_CANCEL: -DLM_ECANCEL |
| 108 | */ |
| 109 | /* Keep in sync with dlmapi.h */ |
| 110 | static int status_map[] = { |
| 111 | [DLM_NORMAL] = 0, /* Success */ |
| 112 | [DLM_GRANTED] = -EINVAL, |
| 113 | [DLM_DENIED] = -EACCES, |
| 114 | [DLM_DENIED_NOLOCKS] = -EACCES, |
| 115 | [DLM_WORKING] = -EACCES, |
| 116 | [DLM_BLOCKED] = -EINVAL, |
| 117 | [DLM_BLOCKED_ORPHAN] = -EINVAL, |
| 118 | [DLM_DENIED_GRACE_PERIOD] = -EACCES, |
| 119 | [DLM_SYSERR] = -ENOMEM, /* It is what it is */ |
| 120 | [DLM_NOSUPPORT] = -EPROTO, |
| 121 | [DLM_CANCELGRANT] = -EBUSY, /* Cancel after grant */ |
| 122 | [DLM_IVLOCKID] = -EINVAL, |
| 123 | [DLM_SYNC] = -EINVAL, |
| 124 | [DLM_BADTYPE] = -EINVAL, |
| 125 | [DLM_BADRESOURCE] = -EINVAL, |
| 126 | [DLM_MAXHANDLES] = -ENOMEM, |
| 127 | [DLM_NOCLINFO] = -EINVAL, |
| 128 | [DLM_NOLOCKMGR] = -EINVAL, |
| 129 | [DLM_NOPURGED] = -EINVAL, |
| 130 | [DLM_BADARGS] = -EINVAL, |
| 131 | [DLM_VOID] = -EINVAL, |
| 132 | [DLM_NOTQUEUED] = -EAGAIN, /* Trylock failed */ |
| 133 | [DLM_IVBUFLEN] = -EINVAL, |
| 134 | [DLM_CVTUNGRANT] = -EPERM, |
| 135 | [DLM_BADPARAM] = -EINVAL, |
| 136 | [DLM_VALNOTVALID] = -EINVAL, |
| 137 | [DLM_REJECTED] = -EPERM, |
| 138 | [DLM_ABORT] = -EINVAL, |
| 139 | [DLM_CANCEL] = -DLM_ECANCEL, /* Successful cancel */ |
| 140 | [DLM_IVRESHANDLE] = -EINVAL, |
| 141 | [DLM_DEADLOCK] = -EDEADLK, |
| 142 | [DLM_DENIED_NOASTS] = -EINVAL, |
| 143 | [DLM_FORWARD] = -EINVAL, |
| 144 | [DLM_TIMEOUT] = -ETIMEDOUT, |
| 145 | [DLM_IVGROUPID] = -EINVAL, |
| 146 | [DLM_VERS_CONFLICT] = -EOPNOTSUPP, |
| 147 | [DLM_BAD_DEVICE_PATH] = -ENOENT, |
| 148 | [DLM_NO_DEVICE_PERMISSION] = -EPERM, |
| 149 | [DLM_NO_CONTROL_DEVICE] = -ENOENT, |
| 150 | [DLM_RECOVERING] = -ENOTCONN, |
| 151 | [DLM_MIGRATING] = -ERESTART, |
| 152 | [DLM_MAXSTATS] = -EINVAL, |
| 153 | }; |
| 154 | |
| 155 | static int dlm_status_to_errno(enum dlm_status status) |
| 156 | { |
Roel Kluin | 8a57a9d | 2009-08-06 16:07:50 -0700 | [diff] [blame] | 157 | BUG_ON(status < 0 || status >= ARRAY_SIZE(status_map)); |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 158 | |
| 159 | return status_map[status]; |
| 160 | } |
| 161 | |
| 162 | static void o2dlm_lock_ast_wrapper(void *astarg) |
| 163 | { |
Joel Becker | a796d28 | 2010-01-28 19:22:39 -0800 | [diff] [blame^] | 164 | union ocfs2_dlm_lksb *lksb = astarg; |
| 165 | |
Joel Becker | 286eaa9 | 2008-02-01 15:03:57 -0800 | [diff] [blame] | 166 | BUG_ON(o2cb_stack.sp_proto == NULL); |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 167 | |
Joel Becker | a796d28 | 2010-01-28 19:22:39 -0800 | [diff] [blame^] | 168 | o2cb_stack.sp_proto->lp_lock_ast(lksb); |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 169 | } |
| 170 | |
| 171 | static void o2dlm_blocking_ast_wrapper(void *astarg, int level) |
| 172 | { |
Joel Becker | a796d28 | 2010-01-28 19:22:39 -0800 | [diff] [blame^] | 173 | union ocfs2_dlm_lksb *lksb = astarg; |
| 174 | |
Joel Becker | 286eaa9 | 2008-02-01 15:03:57 -0800 | [diff] [blame] | 175 | BUG_ON(o2cb_stack.sp_proto == NULL); |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 176 | |
Joel Becker | a796d28 | 2010-01-28 19:22:39 -0800 | [diff] [blame^] | 177 | o2cb_stack.sp_proto->lp_blocking_ast(lksb, level); |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 178 | } |
| 179 | |
| 180 | static void o2dlm_unlock_ast_wrapper(void *astarg, enum dlm_status status) |
| 181 | { |
Joel Becker | a796d28 | 2010-01-28 19:22:39 -0800 | [diff] [blame^] | 182 | union ocfs2_dlm_lksb *lksb = astarg; |
| 183 | |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 184 | int error = dlm_status_to_errno(status); |
| 185 | |
Joel Becker | 286eaa9 | 2008-02-01 15:03:57 -0800 | [diff] [blame] | 186 | BUG_ON(o2cb_stack.sp_proto == NULL); |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 187 | |
| 188 | /* |
| 189 | * In o2dlm, you can get both the lock_ast() for the lock being |
| 190 | * granted and the unlock_ast() for the CANCEL failing. A |
| 191 | * successful cancel sends DLM_NORMAL here. If the |
| 192 | * lock grant happened before the cancel arrived, you get |
| 193 | * DLM_CANCELGRANT. |
| 194 | * |
| 195 | * There's no need for the double-ast. If we see DLM_CANCELGRANT, |
| 196 | * we just ignore it. We expect the lock_ast() to handle the |
| 197 | * granted lock. |
| 198 | */ |
| 199 | if (status == DLM_CANCELGRANT) |
| 200 | return; |
| 201 | |
Joel Becker | a796d28 | 2010-01-28 19:22:39 -0800 | [diff] [blame^] | 202 | o2cb_stack.sp_proto->lp_unlock_ast(lksb, error); |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 203 | } |
| 204 | |
| 205 | static int o2cb_dlm_lock(struct ocfs2_cluster_connection *conn, |
| 206 | int mode, |
| 207 | union ocfs2_dlm_lksb *lksb, |
| 208 | u32 flags, |
| 209 | void *name, |
Joel Becker | a796d28 | 2010-01-28 19:22:39 -0800 | [diff] [blame^] | 210 | unsigned int namelen) |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 211 | { |
| 212 | enum dlm_status status; |
| 213 | int o2dlm_mode = mode_to_o2dlm(mode); |
| 214 | int o2dlm_flags = flags_to_o2dlm(flags); |
| 215 | int ret; |
| 216 | |
| 217 | status = dlmlock(conn->cc_lockspace, o2dlm_mode, &lksb->lksb_o2dlm, |
| 218 | o2dlm_flags, name, namelen, |
Joel Becker | a796d28 | 2010-01-28 19:22:39 -0800 | [diff] [blame^] | 219 | o2dlm_lock_ast_wrapper, lksb, |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 220 | o2dlm_blocking_ast_wrapper); |
| 221 | ret = dlm_status_to_errno(status); |
| 222 | return ret; |
| 223 | } |
| 224 | |
| 225 | static int o2cb_dlm_unlock(struct ocfs2_cluster_connection *conn, |
| 226 | union ocfs2_dlm_lksb *lksb, |
Joel Becker | a796d28 | 2010-01-28 19:22:39 -0800 | [diff] [blame^] | 227 | u32 flags) |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 228 | { |
| 229 | enum dlm_status status; |
| 230 | int o2dlm_flags = flags_to_o2dlm(flags); |
| 231 | int ret; |
| 232 | |
| 233 | status = dlmunlock(conn->cc_lockspace, &lksb->lksb_o2dlm, |
Joel Becker | a796d28 | 2010-01-28 19:22:39 -0800 | [diff] [blame^] | 234 | o2dlm_flags, o2dlm_unlock_ast_wrapper, lksb); |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 235 | ret = dlm_status_to_errno(status); |
| 236 | return ret; |
| 237 | } |
| 238 | |
| 239 | static int o2cb_dlm_lock_status(union ocfs2_dlm_lksb *lksb) |
| 240 | { |
| 241 | return dlm_status_to_errno(lksb->lksb_o2dlm.status); |
| 242 | } |
| 243 | |
Joel Becker | 1c520df | 2009-06-19 15:14:13 -0700 | [diff] [blame] | 244 | /* |
| 245 | * o2dlm aways has a "valid" LVB. If the dlm loses track of the LVB |
| 246 | * contents, it will zero out the LVB. Thus the caller can always trust |
| 247 | * the contents. |
| 248 | */ |
| 249 | static int o2cb_dlm_lvb_valid(union ocfs2_dlm_lksb *lksb) |
| 250 | { |
| 251 | return 1; |
| 252 | } |
| 253 | |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 254 | static void *o2cb_dlm_lvb(union ocfs2_dlm_lksb *lksb) |
| 255 | { |
| 256 | return (void *)(lksb->lksb_o2dlm.lvb); |
| 257 | } |
| 258 | |
| 259 | static void o2cb_dump_lksb(union ocfs2_dlm_lksb *lksb) |
| 260 | { |
| 261 | dlm_print_one_lock(lksb->lksb_o2dlm.lockid); |
| 262 | } |
| 263 | |
| 264 | /* |
| 265 | * Called from the dlm when it's about to evict a node. This is how the |
| 266 | * classic stack signals node death. |
| 267 | */ |
| 268 | static void o2dlm_eviction_cb(int node_num, void *data) |
| 269 | { |
| 270 | struct ocfs2_cluster_connection *conn = data; |
| 271 | |
| 272 | mlog(ML_NOTICE, "o2dlm has evicted node %d from group %.*s\n", |
| 273 | node_num, conn->cc_namelen, conn->cc_name); |
| 274 | |
| 275 | conn->cc_recovery_handler(node_num, conn->cc_recovery_data); |
| 276 | } |
| 277 | |
| 278 | static int o2cb_cluster_connect(struct ocfs2_cluster_connection *conn) |
| 279 | { |
| 280 | int rc = 0; |
| 281 | u32 dlm_key; |
| 282 | struct dlm_ctxt *dlm; |
| 283 | struct o2dlm_private *priv; |
Wengang Wang | e5f2cb2 | 2010-01-22 21:58:04 +0800 | [diff] [blame] | 284 | struct dlm_protocol_version fs_version; |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 285 | |
| 286 | BUG_ON(conn == NULL); |
Joel Becker | 286eaa9 | 2008-02-01 15:03:57 -0800 | [diff] [blame] | 287 | BUG_ON(o2cb_stack.sp_proto == NULL); |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 288 | |
| 289 | /* for now we only have one cluster/node, make sure we see it |
| 290 | * in the heartbeat universe */ |
| 291 | if (!o2hb_check_local_node_heartbeating()) { |
| 292 | rc = -EINVAL; |
| 293 | goto out; |
| 294 | } |
| 295 | |
| 296 | priv = kzalloc(sizeof(struct o2dlm_private), GFP_KERNEL); |
| 297 | if (!priv) { |
| 298 | rc = -ENOMEM; |
| 299 | goto out_free; |
| 300 | } |
| 301 | |
| 302 | /* This just fills the structure in. It is safe to pass conn. */ |
| 303 | dlm_setup_eviction_cb(&priv->op_eviction_cb, o2dlm_eviction_cb, |
| 304 | conn); |
| 305 | |
| 306 | conn->cc_private = priv; |
| 307 | |
| 308 | /* used by the dlm code to make message headers unique, each |
| 309 | * node in this domain must agree on this. */ |
| 310 | dlm_key = crc32_le(0, conn->cc_name, conn->cc_namelen); |
Wengang Wang | e5f2cb2 | 2010-01-22 21:58:04 +0800 | [diff] [blame] | 311 | fs_version.pv_major = conn->cc_version.pv_major; |
| 312 | fs_version.pv_minor = conn->cc_version.pv_minor; |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 313 | |
Wengang Wang | e5f2cb2 | 2010-01-22 21:58:04 +0800 | [diff] [blame] | 314 | dlm = dlm_register_domain(conn->cc_name, dlm_key, &fs_version); |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 315 | if (IS_ERR(dlm)) { |
| 316 | rc = PTR_ERR(dlm); |
| 317 | mlog_errno(rc); |
| 318 | goto out_free; |
| 319 | } |
| 320 | |
Wengang Wang | e5f2cb2 | 2010-01-22 21:58:04 +0800 | [diff] [blame] | 321 | conn->cc_version.pv_major = fs_version.pv_major; |
| 322 | conn->cc_version.pv_minor = fs_version.pv_minor; |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 323 | conn->cc_lockspace = dlm; |
| 324 | |
| 325 | dlm_register_eviction_cb(dlm, &priv->op_eviction_cb); |
| 326 | |
| 327 | out_free: |
| 328 | if (rc && conn->cc_private) |
| 329 | kfree(conn->cc_private); |
| 330 | |
| 331 | out: |
| 332 | return rc; |
| 333 | } |
| 334 | |
Joel Becker | 2c39450 | 2008-05-30 15:58:26 -0700 | [diff] [blame] | 335 | static int o2cb_cluster_disconnect(struct ocfs2_cluster_connection *conn) |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 336 | { |
| 337 | struct dlm_ctxt *dlm = conn->cc_lockspace; |
| 338 | struct o2dlm_private *priv = conn->cc_private; |
| 339 | |
| 340 | dlm_unregister_eviction_cb(&priv->op_eviction_cb); |
| 341 | conn->cc_private = NULL; |
| 342 | kfree(priv); |
| 343 | |
| 344 | dlm_unregister_domain(dlm); |
| 345 | conn->cc_lockspace = NULL; |
| 346 | |
| 347 | return 0; |
| 348 | } |
| 349 | |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 350 | static int o2cb_cluster_this_node(unsigned int *node) |
| 351 | { |
| 352 | int node_num; |
| 353 | |
| 354 | node_num = o2nm_this_node(); |
| 355 | if (node_num == O2NM_INVALID_NODE_NUM) |
| 356 | return -ENOENT; |
| 357 | |
| 358 | if (node_num >= O2NM_MAX_NODES) |
| 359 | return -EOVERFLOW; |
| 360 | |
| 361 | *node = node_num; |
| 362 | return 0; |
| 363 | } |
| 364 | |
Adrian Bunk | 4af694e | 2008-04-21 11:49:31 +0300 | [diff] [blame] | 365 | static struct ocfs2_stack_operations o2cb_stack_ops = { |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 366 | .connect = o2cb_cluster_connect, |
| 367 | .disconnect = o2cb_cluster_disconnect, |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 368 | .this_node = o2cb_cluster_this_node, |
| 369 | .dlm_lock = o2cb_dlm_lock, |
| 370 | .dlm_unlock = o2cb_dlm_unlock, |
| 371 | .lock_status = o2cb_dlm_lock_status, |
Joel Becker | 1c520df | 2009-06-19 15:14:13 -0700 | [diff] [blame] | 372 | .lvb_valid = o2cb_dlm_lvb_valid, |
Joel Becker | e3dad42 | 2008-02-01 15:02:36 -0800 | [diff] [blame] | 373 | .lock_lvb = o2cb_dlm_lvb, |
| 374 | .dump_lksb = o2cb_dump_lksb, |
| 375 | }; |
| 376 | |
Joel Becker | 286eaa9 | 2008-02-01 15:03:57 -0800 | [diff] [blame] | 377 | static struct ocfs2_stack_plugin o2cb_stack = { |
| 378 | .sp_name = "o2cb", |
| 379 | .sp_ops = &o2cb_stack_ops, |
| 380 | .sp_owner = THIS_MODULE, |
| 381 | }; |
| 382 | |
| 383 | static int __init o2cb_stack_init(void) |
| 384 | { |
| 385 | return ocfs2_stack_glue_register(&o2cb_stack); |
| 386 | } |
| 387 | |
| 388 | static void __exit o2cb_stack_exit(void) |
| 389 | { |
| 390 | ocfs2_stack_glue_unregister(&o2cb_stack); |
| 391 | } |
| 392 | |
| 393 | MODULE_AUTHOR("Oracle"); |
| 394 | MODULE_DESCRIPTION("ocfs2 driver for the classic o2cb stack"); |
| 395 | MODULE_LICENSE("GPL"); |
| 396 | module_init(o2cb_stack_init); |
| 397 | module_exit(o2cb_stack_exit); |