[sheepdog] [PATCH] util: consolidate atomic_create_and_write to be concurrency friendly

MORITA Kazutaka morita.kazutaka at gmail.com
Fri Jun 21 02:11:12 CEST 2013


At Thu, 20 Jun 2013 11:11:20 +0800,
Liu Yuan wrote:
> 
> Only one thread can call this function on the specified path.
> 
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  v2:
>  - return -1 for EEXIST because this should be known by caller and caller
>    need to handle this failure gracefully
>  lib/util.c |   12 ++++++++----
>  1 file changed, 8 insertions(+), 4 deletions(-)

Applied, thanks!

Kazutaka



More information about the sheepdog mailing list