Re: [PATCH v2 1/2] mwifiex: initiate card-specific work atomically

2017-05-01 Thread Brian Norris
On Mon, May 01, 2017 at 11:45:48AM -0700, Brian Norris wrote: > The non-atomic test + set is a little awkward here, and it technically > means we might double-schedule work unnecessarily. AFAICT, this is not > really a problem, since the extra "work" will be a no-op (the flag(s) > will be cleared b

[PATCH v2 1/2] mwifiex: initiate card-specific work atomically

2017-05-01 Thread Brian Norris
The non-atomic test + set is a little awkward here, and it technically means we might double-schedule work unnecessarily. AFAICT, this is not really a problem, since the extra "work" will be a no-op (the flag(s) will be cleared by then), but it's still an anti-pattern. Rewrite this to use the atom