Whamcloud - gitweb
LU-881 utils: running bumped w/o lock
authorBruce Korb <bruce_korb@xyratex.com>
Mon, 28 Nov 2011 20:02:21 +0000 (12:02 -0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 7 Dec 2011 18:59:49 +0000 (13:59 -0500)
commit9b62cf1f91bf50eaf5e1ef63024b2b6f78f28794
treedb5c60aa48799fc4cb96627de16faaf60f18a3e6
parent598996a12f5818190635e1f3a948c9e6a77297b5
LU-881 utils: running bumped w/o lock

bumped_running accessed without lock

Multiple threads man increment shared_data->running until
the setting of bumped_running becomes visible.

Also, use "bool" -- First released in Issue 6 of POSIX spec:
   included for alignment with the ISO/IEC 9899:1999 standard

When inserting #include <stdbool.h>, it was noticed that stdio.h was
included twice.  Collected and ordered system headers so that
won't happen again.

Signed-off-by: Bruce Korb <bruce_korb@xyratex.com>
Change-Id: I45891e125221d29f72efee38580a56888c3a266f
Reviewed-on: http://review.whamcloud.com/1749
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: wangdi <di.wang@whamcloud.com>
lustre/utils/obd.c