requestqueue.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) requestqueue.c (1151935182b40bbe398905850f6f7f4fbb262e06)
1// SPDX-License-Identifier: GPL-2.0-only
2/******************************************************************************
3*******************************************************************************
4**
5** Copyright (C) 2005-2007 Red Hat, Inc. All rights reserved.
6**
7**
8*******************************************************************************

--- 16 unchanged lines hidden (view full) ---

25
26/*
27 * Requests received while the lockspace is in recovery get added to the
28 * request queue and processed when recovery is complete. This happens when
29 * the lockspace is suspended on some nodes before it is on others, or the
30 * lockspace is enabled on some while still suspended on others.
31 */
32
1// SPDX-License-Identifier: GPL-2.0-only
2/******************************************************************************
3*******************************************************************************
4**
5** Copyright (C) 2005-2007 Red Hat, Inc. All rights reserved.
6**
7**
8*******************************************************************************

--- 16 unchanged lines hidden (view full) ---

25
26/*
27 * Requests received while the lockspace is in recovery get added to the
28 * request queue and processed when recovery is complete. This happens when
29 * the lockspace is suspended on some nodes before it is on others, or the
30 * lockspace is enabled on some while still suspended on others.
31 */
32
33void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid, struct dlm_message *ms)
33void dlm_add_requestqueue(struct dlm_ls *ls, int nodeid,
34 const struct dlm_message *ms)
34{
35 struct rq_entry *e;
36 int length = le16_to_cpu(ms->m_header.h_length) -
37 sizeof(struct dlm_message);
38
39 e = kmalloc(sizeof(struct rq_entry) + length, GFP_NOFS);
40 if (!e) {
41 log_print("dlm_add_requestqueue: out of memory len %d", length);

--- 132 unchanged lines hidden ---
35{
36 struct rq_entry *e;
37 int length = le16_to_cpu(ms->m_header.h_length) -
38 sizeof(struct dlm_message);
39
40 e = kmalloc(sizeof(struct rq_entry) + length, GFP_NOFS);
41 if (!e) {
42 log_print("dlm_add_requestqueue: out of memory len %d", length);

--- 132 unchanged lines hidden ---