Skip to content

Commit

Permalink
#692 (comment): tfw_http_conn_release() can be called from user conte…
Browse files Browse the repository at this point in the history
…xt, so disable softirq on fwd_qlock locking
  • Loading branch information
krizhanovsky committed Jul 1, 2017
1 parent fba6e46 commit b0a805e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tempesta_fw/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,9 +1256,9 @@ tfw_http_conn_release(TfwConn *conn)
return;
}

spin_lock(&srv_conn->fwd_qlock);
spin_lock_bh(&srv_conn->fwd_qlock);
list_splice_tail_init(&srv_conn->fwd_queue, &zap_queue);
spin_unlock(&srv_conn->fwd_qlock);
spin_unlock_bh(&srv_conn->fwd_qlock);

list_for_each_entry_safe(req, tmp, &zap_queue, fwd_list) {
tfw_http_req_delist(srv_conn, req);
Expand Down

0 comments on commit b0a805e

Please sign in to comment.