Skip to content

Commit 2bbf282

Browse files
julianwiedmannhcahca
authored andcommitted
s390/qdio: allow to scan all 128 Input SBALs
The comment is inaccurate, qdio_inbound_q_moved() and/or its callers no longer get confused by a count of 128 completed SBALs. Scanning all 128 SBALs at once can improve IRQ reduction (as we now place the ACK at the right spot), and reduce the amount of processing needed to handle all completed SBALs. Signed-off-by: Julian Wiedmann <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent 529683d commit 2bbf282

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/s390/cio/qdio_main.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -457,11 +457,7 @@ static int get_inbound_buffer_frontier(struct qdio_q *q, unsigned int start)
457457

458458
q->timestamp = get_tod_clock_fast();
459459

460-
/*
461-
* Don't check 128 buffers, as otherwise qdio_inbound_q_moved
462-
* would return 0.
463-
*/
464-
count = min(atomic_read(&q->nr_buf_used), QDIO_MAX_BUFFERS_MASK);
460+
count = atomic_read(&q->nr_buf_used);
465461
if (!count)
466462
return 0;
467463

0 commit comments

Comments
 (0)