mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 14:51:51 -04:00
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>
This commit is contained in:
committed by
Steve French
parent
2eff5e51f9
commit
98bdc5fda9
@@ -376,9 +376,6 @@ int ksmbd_conn_handler_loop(void *p)
|
||||
mutex_init(&conn->srv_mutex);
|
||||
__module_get(THIS_MODULE);
|
||||
|
||||
if (t->ops->prepare && t->ops->prepare(t))
|
||||
goto out;
|
||||
|
||||
max_req = server_conf.max_inflight_req;
|
||||
conn->last_active = jiffies;
|
||||
set_freezable();
|
||||
@@ -470,7 +467,6 @@ int ksmbd_conn_handler_loop(void *p)
|
||||
}
|
||||
}
|
||||
|
||||
out:
|
||||
ksmbd_conn_set_releasing(conn);
|
||||
/* Wait till all reference dropped to the Server object*/
|
||||
ksmbd_debug(CONN, "Wait for all pending requests(%d)\n", atomic_read(&conn->r_count));
|
||||
|
||||
@@ -127,7 +127,6 @@ struct ksmbd_conn_ops {
|
||||
};
|
||||
|
||||
struct ksmbd_transport_ops {
|
||||
int (*prepare)(struct ksmbd_transport *t);
|
||||
void (*disconnect)(struct ksmbd_transport *t);
|
||||
void (*shutdown)(struct ksmbd_transport *t);
|
||||
int (*read)(struct ksmbd_transport *t, char *buf,
|
||||
|
||||
Reference in New Issue
Block a user