Whamcloud - gitweb
New RC 2.16.0-RC1
[fs/lustre-release.git] / lustre / include / lustre_barrier.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2
3 /*
4  * Copyright (c) 2017, Intel Corporation.
5  *
6  * Lustre write barrier (on MDT) exported functions.
7  *
8  * Author: Fan, Yong <fan.yong@intel.com>
9  */
10
11 #ifndef _LUSTRE_BARRIER_H
12 # define _LUSTRE_BARRIER_H
13
14 #include <dt_object.h>
15 #include <lustre_export.h>
16
17 bool barrier_entry(struct dt_device *key);
18 void barrier_exit(struct dt_device *key);
19 int barrier_handler(struct dt_device *key, struct ptlrpc_request *req);
20 int barrier_register(struct dt_device *key, struct dt_device *next);
21 void barrier_deregister(struct dt_device *key);
22
23 #endif /* _LUSTRE_BARRIER_H */