* GPL HEADER END
*/
/*
- * Copyright (c) 2011 Intel Corporation
+ * Copyright (c) 2011, 2014, Intel Corporation.
*
* Copyright 2012 Xyratex Technology Limited
*/
*/
#define DEBUG_SUBSYSTEM S_RPC
-#ifndef __KERNEL__
-#include <liblustre.h>
-#endif
#include <obd_support.h>
#include <obd_class.h>
#include <libcfs/libcfs.h>
if (head == NULL)
return -ENOMEM;
- CFS_INIT_LIST_HEAD(&head->fh_list);
+ INIT_LIST_HEAD(&head->fh_list);
policy->pol_private = head;
return 0;
}
struct nrs_fifo_head *head = policy->pol_private;
LASSERT(head != NULL);
- LASSERT(cfs_list_empty(&head->fh_list));
+ LASSERT(list_empty(&head->fh_list));
OBD_FREE_PTR(head);
}
struct nrs_fifo_head *head = policy->pol_private;
struct ptlrpc_nrs_request *nrq;
- nrq = unlikely(cfs_list_empty(&head->fh_list)) ? NULL :
- cfs_list_entry(head->fh_list.next, struct ptlrpc_nrs_request,
+ nrq = unlikely(list_empty(&head->fh_list)) ? NULL :
+ list_entry(head->fh_list.next, struct ptlrpc_nrs_request,
nr_u.fifo.fr_list);
if (likely(!peek && nrq != NULL)) {
struct ptlrpc_request,
rq_nrq);
- cfs_list_del_init(&nrq->nr_u.fifo.fr_list);
+ list_del_init(&nrq->nr_u.fifo.fr_list);
CDEBUG(D_RPCTRACE, "NRS start %s request from %s, seq: "LPU64
"\n", policy->pol_desc->pd_name,
* Only used for debugging
*/
nrq->nr_u.fifo.fr_sequence = head->fh_sequence++;
- cfs_list_add_tail(&nrq->nr_u.fifo.fr_list, &head->fh_list);
+ list_add_tail(&nrq->nr_u.fifo.fr_list, &head->fh_list);
return 0;
}
static void nrs_fifo_req_del(struct ptlrpc_nrs_policy *policy,
struct ptlrpc_nrs_request *nrq)
{
- LASSERT(!cfs_list_empty(&nrq->nr_u.fifo.fr_list));
- cfs_list_del_init(&nrq->nr_u.fifo.fr_list);
+ LASSERT(!list_empty(&nrq->nr_u.fifo.fr_list));
+ list_del_init(&nrq->nr_u.fifo.fr_list);
}
/**