1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Copyright (c) 2014, Intel Corporation.
6 * Copyright 2012 Xyratex Technology Limited
10 * This file is part of Lustre, http://www.lustre.org/
12 * Network Request Scheduler (NRS) First-in First-out (FIFO) policy
15 #ifndef _LUSTRE_NRS_FIFO_H
16 #define _LUSTRE_NRS_FIFO_H
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.
30 * Private data structure for the FIFO policy
32 struct nrs_fifo_head {
34 * Resource object for policy instance.
36 struct ptlrpc_nrs_resource fh_res;
38 * List of queued requests.
40 struct list_head fh_list;
42 * For debugging purposes.
48 struct list_head fr_list;