Re: [PATCH] z3fold: fix possible reclaim races

2018-11-05 Thread Andrew Morton
On Mon, 5 Nov 2018 16:22:25 +0100 Vitaly Wool wrote: > Reclaim and free can race on an object which is basically fine but > in order for reclaim to be able to map "freed" object we need to > encode object length in the handle. handle_to_chunks() is then > introduced to extract object length

Re: [PATCH] z3fold: fix possible reclaim races

2018-11-05 Thread Andrew Morton
On Mon, 5 Nov 2018 16:22:25 +0100 Vitaly Wool wrote: > Reclaim and free can race on an object which is basically fine but > in order for reclaim to be able to map "freed" object we need to > encode object length in the handle. handle_to_chunks() is then > introduced to extract object length

[PATCH] z3fold: fix possible reclaim races

2018-11-05 Thread Vitaly Wool
Reclaim and free can race on an object which is basically fine but in order for reclaim to be able to map "freed" object we need to encode object length in the handle. handle_to_chunks() is then introduced to extract object length from a handle and use it during mapping. Moreover, to avoid

[PATCH] z3fold: fix possible reclaim races

2018-11-05 Thread Vitaly Wool
Reclaim and free can race on an object which is basically fine but in order for reclaim to be able to map "freed" object we need to encode object length in the handle. handle_to_chunks() is then introduced to extract object length from a handle and use it during mapping. Moreover, to avoid