Re: [PATCH 1/7] block: avoid ordered task state change for polled IO

2018-11-18 Thread Christoph Hellwig
On Sat, Nov 17, 2018 at 02:43:48PM -0700, Jens Axboe wrote: > For the core poll helper, the task state setting don't need > to imply any atomics, as it's the current task itself that > is being modified and we're not going to sleep. > > For IRQ driven, the wakeup path have the necessary barriers

[PATCH 1/7] block: avoid ordered task state change for polled IO

2018-11-17 Thread Jens Axboe
For the core poll helper, the task state setting don't need to imply any atomics, as it's the current task itself that is being modified and we're not going to sleep. For IRQ driven, the wakeup path have the necessary barriers to not need us using the heavy handed version of the task state