Skip to content

Commit

Permalink
ksmbd: fix2
Browse files Browse the repository at this point in the history
Signed-off-by: Namjae Jeon <[email protected]>
  • Loading branch information
namjaejeon committed Dec 7, 2024
1 parent 7b39233 commit 607af6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ int ksmbd_conn_handler_loop(void *p)
conn->request_buf = NULL;

if (atomic_inc_return(&conn->req_running) >= max_req) {
atomic_dec_return(&conn->req_running);
wait_event_interruptible(conn->req_running_q,
atomic_read(&conn->req_running) < max_req);
atomic_dec(&conn->req_running);
}

size = t->ops->read(t, hdr_buf, sizeof(hdr_buf), -1);
Expand Down

0 comments on commit 607af6a

Please sign in to comment.