call_state.c (96b4059f43ce69e9c590f77d6ce3e99888d5cfe6) call_state.c (9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* Call state changing functions.
3 *
4 * Copyright (C) 2022 Red Hat, Inc. All Rights Reserved.
5 * Written by David Howells (dhowells@redhat.com)
6 */
7
8#include "ar-internal.h"

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

60void rxrpc_prefail_call(struct rxrpc_call *call, enum rxrpc_call_completion compl,
61 int error)
62{
63 call->abort_code = RX_CALL_DEAD;
64 call->error = error;
65 call->completion = compl;
66 call->_state = RXRPC_CALL_COMPLETE;
67 trace_rxrpc_call_complete(call);
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* Call state changing functions.
3 *
4 * Copyright (C) 2022 Red Hat, Inc. All Rights Reserved.
5 * Written by David Howells (dhowells@redhat.com)
6 */
7
8#include "ar-internal.h"

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

60void rxrpc_prefail_call(struct rxrpc_call *call, enum rxrpc_call_completion compl,
61 int error)
62{
63 call->abort_code = RX_CALL_DEAD;
64 call->error = error;
65 call->completion = compl;
66 call->_state = RXRPC_CALL_COMPLETE;
67 trace_rxrpc_call_complete(call);
68 __set_bit(RXRPC_CALL_RELEASED, &call->flags);
68 WARN_ON_ONCE(__test_and_set_bit(RXRPC_CALL_RELEASED, &call->flags));
69}
69}