Whamcloud - gitweb
LU-18101 sec: fix ACL handling on recent kernels again
[fs/lustre-release.git] / lustre / include / lustre_nrs_fifo.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2
3 /*
4  * Copyright (c) 2014, Intel Corporation.
5  *
6  * Copyright 2012 Xyratex Technology Limited
7  */
8
9 /*
10  * This file is part of Lustre, http://www.lustre.org/
11  *
12  * Network Request Scheduler (NRS) First-in First-out (FIFO) policy
13  */
14
15 #ifndef _LUSTRE_NRS_FIFO_H
16 #define _LUSTRE_NRS_FIFO_H
17
18 /* \name fifo
19  *
20  * FIFO policy
21  *
22  * This policy is a logical wrapper around previous, non-NRS functionality.
23  * It dispatches RPCs in the same order as they arrive from the network. This
24  * policy is currently used as the fallback policy, and the only enabled policy
25  * on all NRS heads of all PTLRPC service partitions.
26  * @{
27  */
28
29 /**
30  * Private data structure for the FIFO policy
31  */
32 struct nrs_fifo_head {
33         /**
34          * Resource object for policy instance.
35          */
36         struct ptlrpc_nrs_resource      fh_res;
37         /**
38          * List of queued requests.
39          */
40         struct list_head                fh_list;
41         /**
42          * For debugging purposes.
43          */
44         __u64                           fh_sequence;
45 };
46
47 struct nrs_fifo_req {
48         struct list_head        fr_list;
49         __u64                   fr_sequence;
50 };
51
52 /** @} fifo */
53 #endif