mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
smb: client: fill in smbdirect_socket.first_error on error
For now we just use -ECONNABORTED, but it will get more detailed later. Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: Long Li <longli@microsoft.com> Acked-by: Namjae Jeon <linkinjeon@kernel.org> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
ffbfc73e84
commit
98a1cdca35
|
|
@ -181,6 +181,9 @@ static void smbd_disconnect_rdma_work(struct work_struct *work)
|
|||
disable_work(&sc->idle.immediate_work);
|
||||
disable_delayed_work(&sc->idle.timer_work);
|
||||
|
||||
if (sc->first_error == 0)
|
||||
sc->first_error = -ECONNABORTED;
|
||||
|
||||
switch (sc->status) {
|
||||
case SMBDIRECT_SOCKET_NEGOTIATE_NEEDED:
|
||||
case SMBDIRECT_SOCKET_NEGOTIATE_RUNNING:
|
||||
|
|
@ -217,6 +220,9 @@ static void smbd_disconnect_rdma_work(struct work_struct *work)
|
|||
|
||||
static void smbd_disconnect_rdma_connection(struct smbdirect_socket *sc)
|
||||
{
|
||||
if (sc->first_error == 0)
|
||||
sc->first_error = -ECONNABORTED;
|
||||
|
||||
switch (sc->status) {
|
||||
case SMBDIRECT_SOCKET_RESOLVE_ADDR_FAILED:
|
||||
case SMBDIRECT_SOCKET_RESOLVE_ROUTE_FAILED:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user