[PATCH 11/18] Removed nxt_always_inline from nxt_port_close_fds().

Alejandro Colomar alx.manpages at gmail.com
Thu Jun 2 18:05:05 UTC 2022

We shouldn't be forcing the inline of a function used in error
cases (slow path).
 src/nxt_port_socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nxt_port_socket.c b/src/nxt_port_socket.c
index 30ec449..96988c8 100644
--- a/src/nxt_port_socket.c
+++ b/src/nxt_port_socket.c
@@ -24,7 +24,7 @@ static void nxt_port_write_handler(nxt_task_t *task, void *obj, void *data);
 static nxt_port_send_msg_t *nxt_port_msg_first(nxt_port_t *port);
 nxt_always_inline static inline void nxt_port_msg_close_fd(
     nxt_port_send_msg_t *msg);
-nxt_always_inline static inline void nxt_port_close_fds(nxt_fd_t *fd);
+static inline void nxt_port_close_fds(nxt_fd_t *fd);
 static nxt_buf_t *nxt_port_buf_completion(nxt_task_t *task,
     nxt_work_queue_t *wq, nxt_buf_t *b, size_t sent, nxt_bool_t mmap_mode);
 static nxt_port_send_msg_t *nxt_port_msg_insert_tail(nxt_port_t *port,

More information about the unit mailing list