hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/scsi/iscsi_tcp.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * iSCSI Initiator TCP Transport
34 * Copyright (C) 2004 Dmitry Yusupov
....@@ -5,16 +6,6 @@
56 * Copyright (C) 2005 - 2006 Mike Christie
67 * Copyright (C) 2006 Red Hat, Inc. All rights reserved.
78 * maintained by open-iscsi@googlegroups.com
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published
11
- * by the Free Software Foundation; either version 2 of the License, or
12
- * (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful, but
15
- * WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
- * General Public License for more details.
189 *
1910 * See the file COPYING included with this distribution for more details.
2011 */
....@@ -37,6 +28,8 @@
3728
3829 struct iscsi_sw_tcp_conn {
3930 struct socket *sock;
31
+ /* Taken when accessing the sock from the netlink/sysfs interface */
32
+ struct mutex sock_lock;
4033
4134 struct iscsi_sw_tcp_send out;
4235 /* old values for socket callbacks */