1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright (c) 2017, Intel Corporation.
6 * Lustre write barrier (on MDT) exported functions.
8 * Author: Fan, Yong <fan.yong@intel.com>
11 #ifndef _LUSTRE_BARRIER_H
12 # define _LUSTRE_BARRIER_H
14 #include <dt_object.h>
15 #include <lustre_export.h>
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);
23 #endif /* _LUSTRE_BARRIER_H */