Lines Matching refs:active_stack

41 static struct ocfs2_stack_plugin *active_stack;  variable
74 if (active_stack) { in ocfs2_stack_driver_request()
79 if (!strcmp(active_stack->sp_name, plugin_name)) in ocfs2_stack_driver_request()
92 active_stack = p; in ocfs2_stack_driver_request()
98 active_stack->sp_count++; in ocfs2_stack_driver_request()
153 BUG_ON(active_stack == NULL); in ocfs2_stack_driver_put()
154 BUG_ON(active_stack->sp_count == 0); in ocfs2_stack_driver_put()
156 active_stack->sp_count--; in ocfs2_stack_driver_put()
157 if (!active_stack->sp_count) { in ocfs2_stack_driver_put()
158 module_put(active_stack->sp_owner); in ocfs2_stack_driver_put()
159 active_stack = NULL; in ocfs2_stack_driver_put()
195 BUG_ON(plugin == active_stack); in ocfs2_stack_glue_unregister()
244 return active_stack->sp_ops->dlm_lock(conn, mode, lksb, flags, in ocfs2_dlm_lock()
255 return active_stack->sp_ops->dlm_unlock(conn, lksb, flags); in ocfs2_dlm_unlock()
261 return active_stack->sp_ops->lock_status(lksb); in ocfs2_dlm_lock_status()
267 return active_stack->sp_ops->lvb_valid(lksb); in ocfs2_dlm_lvb_valid()
273 return active_stack->sp_ops->lock_lvb(lksb); in ocfs2_dlm_lvb()
279 active_stack->sp_ops->dump_lksb(lksb); in ocfs2_dlm_dump_lksb()
285 return active_stack && active_stack->sp_ops->plock; in ocfs2_stack_supports_plocks()
296 WARN_ON_ONCE(active_stack->sp_ops->plock == NULL); in ocfs2_plock()
297 if (active_stack->sp_ops->plock) in ocfs2_plock()
298 return active_stack->sp_ops->plock(conn, ino, file, cmd, fl); in ocfs2_plock()
357 rc = active_stack->sp_ops->connect(new_conn); in ocfs2_cluster_connect()
401 ret = active_stack->sp_ops->disconnect(conn); in ocfs2_cluster_disconnect()
465 return active_stack->sp_ops->this_node(conn, node); in ocfs2_cluster_this_node()
533 if (active_stack) { in ocfs2_active_cluster_plugin_show()
535 active_stack->sp_name); in ocfs2_active_cluster_plugin_show()
578 if (active_stack) { in ocfs2_cluster_stack_store()