1// SPDX-License-Identifier: GPL-2.0 2/* 3 * GPL HEADER START 4 * 5 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 only, 9 * as published by the Free Software Foundation. 10 * 11 * This program is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * General Public License version 2 for more details (a copy is included 15 * in the LICENSE file that accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License 18 * version 2 along with this program; If not, see 19 * http://www.gnu.org/licenses/gpl-2.0.html 20 * 21 * GPL HEADER END 22 */ 23/* 24 * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. 25 * Use is subject to license terms. 26 * 27 * Copyright (c) 2011, 2015, Intel Corporation. 28 */ 29/* 30 * This file is part of Lustre, http://www.lustre.org/ 31 * Lustre is a trademark of Sun Microsystems, Inc. 32 */ 33 34#ifndef _LUSTRE_HA_H 35#define _LUSTRE_HA_H 36 37/** \defgroup ha ha 38 * 39 * @{ 40 */ 41 42struct obd_import; 43struct obd_export; 44struct obd_device; 45struct ptlrpc_request; 46 47int ptlrpc_replay(struct obd_import *imp); 48int ptlrpc_resend(struct obd_import *imp); 49void ptlrpc_free_committed(struct obd_import *imp); 50void ptlrpc_wake_delayed(struct obd_import *imp); 51int ptlrpc_recover_import(struct obd_import *imp, char *new_uuid, int async); 52int ptlrpc_set_import_active(struct obd_import *imp, int active); 53void ptlrpc_activate_import(struct obd_import *imp); 54void ptlrpc_deactivate_import(struct obd_import *imp); 55void ptlrpc_invalidate_import(struct obd_import *imp); 56void ptlrpc_fail_import(struct obd_import *imp, __u32 conn_cnt); 57void ptlrpc_pinger_force(struct obd_import *imp); 58 59/** @} ha */ 60 61#endif 62