mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 07:36:56 +07:00
475f230c60
The in_recovery rw_semaphore has always been acquired and released by different threads by design. To work around the "BUG: bad unlock balance detected!" messages, adjust things so the dlm_recoverd thread always does both down_write and up_write. Signed-off-by: David Teigland <teigland@redhat.com>
24 lines
927 B
C
24 lines
927 B
C
/******************************************************************************
|
|
*******************************************************************************
|
|
**
|
|
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
|
|
** Copyright (C) 2004-2005 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 __RECOVERD_DOT_H__
|
|
#define __RECOVERD_DOT_H__
|
|
|
|
void dlm_recoverd_stop(struct dlm_ls *ls);
|
|
int dlm_recoverd_start(struct dlm_ls *ls);
|
|
void dlm_recoverd_suspend(struct dlm_ls *ls);
|
|
void dlm_recoverd_resume(struct dlm_ls *ls);
|
|
|
|
#endif /* __RECOVERD_DOT_H__ */
|
|
|