Re: [PATCH v3] netpoll: Close race condition between poll_one_napi and napi_disable

2015-09-23 Thread David Miller
From: Neil Horman Date: Wed, 23 Sep 2015 14:57:58 -0400 > Drivers might call napi_disable while not holding the napi instance poll_lock. > In those instances, its possible for a race condition to exist between > poll_one_napi and napi_disable. That is to say, poll_one_napi only tests the > NAPI_

[PATCH v3] netpoll: Close race condition between poll_one_napi and napi_disable

2015-09-23 Thread Neil Horman
Drivers might call napi_disable while not holding the napi instance poll_lock. In those instances, its possible for a race condition to exist between poll_one_napi and napi_disable. That is to say, poll_one_napi only tests the NAPI_STATE_SCHED bit to see if there is work to do during a poll, and a