[PATCH v4 144/145] smb: server: remove unused ksmbd_transport_ops.prepare()
Stefan Metzmacher
metze at samba.org
Tue Nov 25 17:56:30 UTC 2025
This is no longer needed for smbdirect.
Cc: Namjae Jeon <linkinjeon at kernel.org>
Cc: Steve French <smfrench at gmail.com>
Cc: Tom Talpey <tom at talpey.com>
Cc: linux-cifs at vger.kernel.org
Cc: samba-technical at lists.samba.org
Signed-off-by: Stefan Metzmacher <metze at samba.org>
---
fs/smb/server/connection.c | 4 ----
fs/smb/server/connection.h | 1 -
2 files changed, 5 deletions(-)
diff --git a/fs/smb/server/connection.c b/fs/smb/server/connection.c
index 66d6dab66ebe..71e2f522b05a 100644
--- a/fs/smb/server/connection.c
+++ b/fs/smb/server/connection.c
@@ -317,9 +317,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();
@@ -411,7 +408,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));
diff --git a/fs/smb/server/connection.h b/fs/smb/server/connection.h
index 7f9bcd9817b5..784208d22c53 100644
--- a/fs/smb/server/connection.h
+++ b/fs/smb/server/connection.h
@@ -126,7 +126,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,
--
2.43.0
More information about the samba-technical
mailing list