[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v5 6/8] mm: Keep heap accessible to others while scrubbing



>>> "Jan Beulich" <jbeulich@xxxxxxxx> 06/27/17 9:29 PM >>>
>>>> Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> 06/22/17 8:56 PM >>>
>> +            /* Can't ACCESS_ONCE() a bitfield. */
>> +            pg.u.free.val = ACCESS_ONCE(head->u.free.val);
>
>Something like ACCESS_ONCE(head->u.free).val ought to work (or read_atomic(),
>due to the questionable scalar type check in ACCESS_ONCE()).

And (of course) I did mean .scrub_state here instead of .val.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.