Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

smb: server: remove unused ksmbd_transport_ops.prepare()

This is no longer needed for smbdirect.

Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>

authored by

Stefan Metzmacher and committed by
Steve French
98bdc5fd 2eff5e51

-5
-4
fs/smb/server/connection.c
··· 376 376 mutex_init(&conn->srv_mutex); 377 377 __module_get(THIS_MODULE); 378 378 379 - if (t->ops->prepare && t->ops->prepare(t)) 380 - goto out; 381 - 382 379 max_req = server_conf.max_inflight_req; 383 380 conn->last_active = jiffies; 384 381 set_freezable(); ··· 467 470 } 468 471 } 469 472 470 - out: 471 473 ksmbd_conn_set_releasing(conn); 472 474 /* Wait till all reference dropped to the Server object*/ 473 475 ksmbd_debug(CONN, "Wait for all pending requests(%d)\n", atomic_read(&conn->r_count));
-1
fs/smb/server/connection.h
··· 127 127 }; 128 128 129 129 struct ksmbd_transport_ops { 130 - int (*prepare)(struct ksmbd_transport *t); 131 130 void (*disconnect)(struct ksmbd_transport *t); 132 131 void (*shutdown)(struct ksmbd_transport *t); 133 132 int (*read)(struct ksmbd_transport *t, char *buf,