On Tue, Jan 09, 2018 at 05:29:24PM -0700, Jens Axboe wrote: > We don't need this to be an atomic flag, it can be a regular > flag. We either end up on the same CPU for the polling, in which > case the state is sane, or we did the sleep which would imply > the needed barrier to ensure we see the right state. Second Bart's comment, looks good otherwise. Reviewed-by: Omar Sandoval <osandov@xxxxxx> > Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>