Skip to content

Commit

Permalink
lib/efthrm: fix usage of poll_does_not_wait()
Browse files Browse the repository at this point in the history
poll_does_not_wait() was removed in linux-6.13. Replace it
with direct access to poll_table structure.

Signed-off-by: Sergey Nikitin <[email protected]>
  • Loading branch information
okt-sergeyn committed Mar 7, 2025
1 parent 2802858 commit e0c168f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/efthrm/tcp_helper_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ static unsigned efab_linux_tcp_helper_fop_poll_tcp(struct file* filp,
efab_fop_poll__prime_if_needed(trs, tep_p,
SOCK_POLL_AWAITING_EVENTS(mask, wait),
enable_interrupts);
if( ! poll_does_not_wait(wait) && s->b.state == CI_TCP_CLOSED &&
if( wait && wait->_qproc && s->b.state == CI_TCP_CLOSED &&
tep_p->os_socket != NULL) {
/* From the closed state, handover is possible. We should add OS
* socket waitqueue to the poll table.
Expand Down

0 comments on commit e0c168f

Please sign in to comment.