mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
81cf4f4707
With the introduction of the link group termination worker there is no longer a need to postpone smc_close_active_abort() to a worker. To protect socket destruction due to normal and abnormal socket closing, the socket refcount is increased. Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
31 lines
759 B
C
31 lines
759 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Shared Memory Communications over RDMA (SMC-R) and RoCE
|
|
*
|
|
* Socket Closing
|
|
*
|
|
* Copyright IBM Corp. 2016
|
|
*
|
|
* Author(s): Ursula Braun <ubraun@linux.vnet.ibm.com>
|
|
*/
|
|
|
|
#ifndef SMC_CLOSE_H
|
|
#define SMC_CLOSE_H
|
|
|
|
#include <linux/workqueue.h>
|
|
|
|
#include "smc.h"
|
|
|
|
#define SMC_MAX_STREAM_WAIT_TIMEOUT (2 * HZ)
|
|
#define SMC_CLOSE_SOCK_PUT_DELAY HZ
|
|
|
|
void smc_close_wake_tx_prepared(struct smc_sock *smc);
|
|
int smc_close_active(struct smc_sock *smc);
|
|
int smc_close_shutdown_write(struct smc_sock *smc);
|
|
void smc_close_init(struct smc_sock *smc);
|
|
void smc_clcsock_release(struct smc_sock *smc);
|
|
int smc_close_abort(struct smc_connection *conn);
|
|
void smc_close_active_abort(struct smc_sock *smc);
|
|
|
|
#endif /* SMC_CLOSE_H */
|