nvme: optimise io_uring passthrough completion
[linux-block.git] / fs / ksmbd / transport_tcp.c
index 20e85e2701f26cf38daac453a41cc5eee2c14245..eff7a1d793f00382078f3132f818a2dd4fe62cda 100644 (file)
@@ -333,7 +333,7 @@ static int ksmbd_tcp_readv(struct tcp_transport *t, struct kvec *iov_orig,
                if (length == -EINTR) {
                        total_read = -ESHUTDOWN;
                        break;
-               } else if (conn->status == KSMBD_SESS_NEED_RECONNECT) {
+               } else if (ksmbd_conn_need_reconnect(conn)) {
                        total_read = -EAGAIN;
                        break;
                } else if (length == -ERESTARTSYS || length == -EAGAIN) {