Skip to contentSkip to conversation

Current state of smbdirect patches

DISCUSSION Stefan Metzmacher 3 participants 5 messages Aug 18, 2025 – Aug 22, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I'm at the point where server/transport_rdma.c only has there local structures:

struct smb_direct_device {
        struct ib_device        *ib_dev;
        struct list_head        list;
};
static struct smb_direct_listener {
        struct rdma_cm_id       *cm_id;
} smb_direct_listener;
struct smb_direct_transport {
        struct ksmbd_transport  transport;

        struct smbdirect_socket socket;
};

All others are moved to smbdirect_socket.h.

For the client I'm almost there I just need to
finish the move of struct smbd_mr.

Should I post all patches including the ones already in for-next and ksmbd-for-next-next? But resorted, first all fs/smb/common/smbdirect/ patches, then
all fs/smb/client patches and finally all fs/smb/server patches.

Maybe we want a smbdirect-for-next branch, which could be a shared ground for for-next (client) and ksmbd-for-next[-next] (server)?

So how should I post what I have?

metze

#1 lore raw
Quoted 3 lines

Should I post all patches including the ones already in for-next and ksmbd-for-next-next? But resorted, first all fs/smb/common/smbdirect/ patches, then
all fs/smb/client patches and finally all fs/smb/server patches.

Yes, that sounds reasonable

Quoted 2 lines

a smbdirect-for-next branch, which could be a shared ground for for-next (client) and ksmbd-for-next[-next] (server)?

I can do that (create an smb3-common-next, and possibly an smb3-common-next-next branch if we need to distinguish patches for next release vs. next rc),
but would prefer to wait until we have more of the code moved into smb/common. Probably reasonable to target creating that branch in a month or two
as the common module becomes usable.

Quoted 37 lines · Stefan Metzmacher

Hi,

I'm at the point where server/transport_rdma.c only has there local structures:

struct smb_direct_device {
         struct ib_device        *ib_dev;
         struct list_head        list;
};
static struct smb_direct_listener {
         struct rdma_cm_id       *cm_id;
} smb_direct_listener;
struct smb_direct_transport {
         struct ksmbd_transport  transport;

         struct smbdirect_socket socket;
};

All others are moved to smbdirect_socket.h.

For the client I'm almost there I just need to
finish the move of struct smbd_mr.

Should I post all patches including the ones already in for-next and ksmbd-for-next-next? But resorted, first all fs/smb/common/smbdirect/ patches, then
all fs/smb/client patches and finally all fs/smb/server patches.

Maybe we want a smbdirect-for-next branch, which could be a shared ground for for-next (client) and ksmbd-for-next[-next] (server)?

So how should I post what I have?

metze

Signature · 3 lines
Thanks,

Steve
#2 lore raw

Hi Steve,

can you please remove my smbdirect related patches, which were in for-next and ksmbd-for-next-next in the last days.

I'll post new patches (most likely) on Monday.

I'm currently at the point where struct smbd_connection and struct smb_direct_transport are only used in very few places...

metze

#3 lore raw

Done. I have updated cifs-2.6.git for-next (ie client changesets in linux-next) to remove the pending smbdirect ones and also from smb3-kernel ksmbd-for-next (ie server next branch).

I will let Namjae update ksmbd-for-next-next

Quoted 13 lines · Stefan Metzmacher

Hi Steve,

can you please remove my smbdirect related patches, which were in for-next and ksmbd-for-next-next in the last days.

I'll post new patches (most likely) on Monday.

I'm currently at the point where struct smbd_connection and struct smb_direct_transport are only used in very few places...

metze

Signature · 3 lines
Thanks,

Steve
maintainer
#4 lore raw
In reply to Stefan Metzmacher
Quoted 26 lines · Stefan Metzmacher

Hi,

I'm at the point where server/transport_rdma.c only has there local structures:

struct smb_direct_device {
         struct ib_device        *ib_dev;
         struct list_head        list;
};
static struct smb_direct_listener {
         struct rdma_cm_id       *cm_id;
} smb_direct_listener;
struct smb_direct_transport {
         struct ksmbd_transport  transport;

         struct smbdirect_socket socket;
};

All others are moved to smbdirect_socket.h.

For the client I'm almost there I just need to
finish the move of struct smbd_mr.

Quoted 8 lines

Should I post all patches including the ones already in for-next and ksmbd-for-next-next? But resorted, first all fs/smb/common/smbdirect/ patches, then
all fs/smb/client patches and finally all fs/smb/server patches.

Maybe we want a smbdirect-for-next branch, which could be a shared ground for for-next (client) and ksmbd-for-next[-next] (server)?

So how should I post what I have?

The simplest way is to put the client/server's smbdirect patches on top of #for-next.
Because you are changing the /common directory together and it would be nice if it was merged and tested in linux-next.

Quoted 3 lines

metze