On Mon, Jan 14, 2019 at 11:43:10AM +0300, Dan Carpenter wrote: > I'm really terribly ignorant when it comes to things like this... To me > it looked like the barrier in alloc_swap_info() was enough but when so > many smarter people disagree then I must be wrong. I'd like to help, > but I sort of feel unqualified. > > Could someone else take care of it? I'm not the most qualified person either, but I gave it a try anyway. Patch to follow.