Lines Matching refs:active_stack

39 static struct ocfs2_stack_plugin *active_stack;  variable
72 if (active_stack) { in ocfs2_stack_driver_request()
77 if (!strcmp(active_stack->sp_name, plugin_name)) in ocfs2_stack_driver_request()
90 active_stack = p; in ocfs2_stack_driver_request()
96 active_stack->sp_count++; in ocfs2_stack_driver_request()
151 BUG_ON(active_stack == NULL); in ocfs2_stack_driver_put()
152 BUG_ON(active_stack->sp_count == 0); in ocfs2_stack_driver_put()
154 active_stack->sp_count--; in ocfs2_stack_driver_put()
155 if (!active_stack->sp_count) { in ocfs2_stack_driver_put()
156 module_put(active_stack->sp_owner); in ocfs2_stack_driver_put()
157 active_stack = NULL; in ocfs2_stack_driver_put()
193 BUG_ON(plugin == active_stack); in ocfs2_stack_glue_unregister()
242 return active_stack->sp_ops->dlm_lock(conn, mode, lksb, flags, in ocfs2_dlm_lock()
253 return active_stack->sp_ops->dlm_unlock(conn, lksb, flags); in ocfs2_dlm_unlock()
259 return active_stack->sp_ops->lock_status(lksb); in ocfs2_dlm_lock_status()
265 return active_stack->sp_ops->lvb_valid(lksb); in ocfs2_dlm_lvb_valid()
271 return active_stack->sp_ops->lock_lvb(lksb); in ocfs2_dlm_lvb()
277 active_stack->sp_ops->dump_lksb(lksb); in ocfs2_dlm_dump_lksb()
283 return active_stack && active_stack->sp_ops->plock; in ocfs2_stack_supports_plocks()
294 WARN_ON_ONCE(active_stack->sp_ops->plock == NULL); in ocfs2_plock()
295 if (active_stack->sp_ops->plock) in ocfs2_plock()
296 return active_stack->sp_ops->plock(conn, ino, file, cmd, fl); in ocfs2_plock()
355 rc = active_stack->sp_ops->connect(new_conn); in ocfs2_cluster_connect()
399 ret = active_stack->sp_ops->disconnect(conn); in ocfs2_cluster_disconnect()
463 return active_stack->sp_ops->this_node(conn, node); in ocfs2_cluster_this_node()
527 if (active_stack) { in ocfs2_active_cluster_plugin_show()
529 active_stack->sp_name); in ocfs2_active_cluster_plugin_show()
572 if (active_stack) { in ocfs2_cluster_stack_store()