]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r341326
authorarybchik <arybchik@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 26 Dec 2018 10:28:03 +0000 (10:28 +0000)
committerarybchik <arybchik@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 26 Dec 2018 10:28:03 +0000 (10:28 +0000)
commit4fa51b1a136fd74e5ece360d603500c74224ed0e
treeb174803cbe6f6790dd58630a2d6c3d622e160cf2
parent701f91f5cd8937d7b9aa4d72fc4aa8c8ab1567f6
MFC r341326

sfxge(4): ensure EvQ poll stops when abort is requested

If an event handler requested an abort, only the inner loop was
guarenteed to be broken out of - the outer loop could continue
if total == batch.

Fix this by poisoning batch to ensure it is different to total.

Submitted by:   Mark Spender <mspender at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
Differential Revision:  https://reviews.freebsd.org/D18287

git-svn-id: svn://svn.freebsd.org/base/stable/10@342521 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/sfxge/common/efx_ev.c