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

MORITA Kazutaka morita.kazutaka at gmail.com
Wed Aug 28 18:25:46 CEST 2013


At Wed, 28 Aug 2013 17:52:29 +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>
> ---
> 
> v2:
>  - removed needless variable
>  - replace more set_bit() for vdi_inuse
> 
> v3:
>  - fixed a silly compilation error
> 
>  include/bitops.h    |    5 +++++
>  sheep/group.c       |    2 +-
>  sheep/ops.c         |    4 ++--
>  sheep/plain_store.c |    2 +-
>  4 files changed, 9 insertions(+), 4 deletions(-)

Applied, thanks.

Kazutaka



More information about the sheepdog mailing list