Whamcloud - gitweb
LU-10308 misc: update Intel copyright messages for 2017
[fs/lustre-release.git] / lustre / include / lustre_barrier.h
1 /*
2  * GPL HEADER START
3  *
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 only,
8  * as published by the Free Software Foundation.
9
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License version 2 for more details.  A copy is
14  * included in the COPYING file that accompanied this code.
15
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  * GPL HEADER END
21  */
22 /*
23  * Copyright (c) 2017, Intel Corporation.
24  *
25  * lustre/include/lustre_barrier.h
26  *
27  * Lustre write barrier (on MDT) exported functions.
28  *
29  * Author: Fan, Yong <fan.yong@intel.com>
30  */
31
32 #ifndef _LUSTRE_BARRIER_H
33 # define _LUSTRE_BARRIER_H
34
35 #include <dt_object.h>
36 #include <lustre_export.h>
37
38 bool barrier_entry(struct dt_device *key);
39 void barrier_exit(struct dt_device *key);
40 int barrier_handler(struct dt_device *key, struct ptlrpc_request *req);
41 int barrier_register(struct dt_device *key, struct dt_device *next);
42 void barrier_deregister(struct dt_device *key);
43
44 #endif /* _LUSTRE_BARRIER_H */