mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 00:42:16 +00:00
fd22a51bcc
The lkb bastmode value is set in the context of processing the lock, and read by the dlm_astd thread. Because it's accessed in these two separate contexts, the writing/reading ought to be done under a lock. This is simple to do by setting it and reading it when the lkb is added to and removed from dlm_astd's callback list which is properly locked. Signed-off-by: David Teigland <teigland@redhat.com>
27 lines
878 B
C
27 lines
878 B
C
/******************************************************************************
|
|
*******************************************************************************
|
|
**
|
|
** Copyright (C) 2005-2008 Red Hat, Inc. All rights reserved.
|
|
**
|
|
** This copyrighted material is made available to anyone wishing to use,
|
|
** modify, copy, or redistribute it subject to the terms and conditions
|
|
** of the GNU General Public License v.2.
|
|
**
|
|
*******************************************************************************
|
|
******************************************************************************/
|
|
|
|
#ifndef __ASTD_DOT_H__
|
|
#define __ASTD_DOT_H__
|
|
|
|
void dlm_add_ast(struct dlm_lkb *lkb, int type, int bastmode);
|
|
void dlm_del_ast(struct dlm_lkb *lkb);
|
|
|
|
void dlm_astd_wake(void);
|
|
int dlm_astd_start(void);
|
|
void dlm_astd_stop(void);
|
|
void dlm_astd_suspend(void);
|
|
void dlm_astd_resume(void);
|
|
|
|
#endif
|
|
|