[sheepdog] [PATCH] sheep: set bit in vdi_inuse in atomic manner

Hitoshi Mitake mitake.hitoshi at gmail.com
Wed Aug 28 05:19:19 CEST 2013


At Wed, 28 Aug 2013 11:49:46 +0900,
Hitoshi Mitake wrote:
> 
> sys->vdi_inuse must be operated in atomic manner because it is
> manipulated by multiple threads. This patch implements a new bit
> operator atomic_set_bit() and let get_vdis_from() use this.
> 
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---

I forgot to replace some set_bit() calls. I'll send v2 later.

Thanks,
Hitoshi



More information about the sheepdog mailing list