Skip to content

Commit 98bdc5f

Browse files
metze-sambasmfrench
authored andcommitted
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>
1 parent 2eff5e5 commit 98bdc5f

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

fs/smb/server/connection.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,6 @@ int ksmbd_conn_handler_loop(void *p)
376376
mutex_init(&conn->srv_mutex);
377377
__module_get(THIS_MODULE);
378378

379-
if (t->ops->prepare && t->ops->prepare(t))
380-
goto out;
381-
382379
max_req = server_conf.max_inflight_req;
383380
conn->last_active = jiffies;
384381
set_freezable();
@@ -470,7 +467,6 @@ int ksmbd_conn_handler_loop(void *p)
470467
}
471468
}
472469

473-
out:
474470
ksmbd_conn_set_releasing(conn);
475471
/* Wait till all reference dropped to the Server object*/
476472
ksmbd_debug(CONN, "Wait for all pending requests(%d)\n", atomic_read(&conn->r_count));

fs/smb/server/connection.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ struct ksmbd_conn_ops {
127127
};
128128

129129
struct ksmbd_transport_ops {
130-
int (*prepare)(struct ksmbd_transport *t);
131130
void (*disconnect)(struct ksmbd_transport *t);
132131
void (*shutdown)(struct ksmbd_transport *t);
133132
int (*read)(struct ksmbd_transport *t, char *buf,

0 commit comments

Comments
 (0)