Whamcloud - gitweb
Branch HEAD
authorfanyong <fanyong>
Thu, 13 Dec 2007 16:02:35 +0000 (16:02 +0000)
committerfanyong <fanyong>
Thu, 13 Dec 2007 16:02:35 +0000 (16:02 +0000)
commit71e20cf1b01ea7da372858dd114d47005324153b
tree6880b01d614a13d7338fb87a8193392b0c726a10
parent1f8b7d9dd5ecf9eecaf52327f114201c3c171554
Branch HEAD
b=12974
i=nikita
i=adilger

1) set as "inline" for such large function ("obd_fail_check()") is not suitable,
   replaced with normal function "__obd_fail_check_set()".
2) atomic operations for obd_fail_count (replace "static count" in obd_fail_check).
3) use "test_and_set_bit()" for "OBD_FAILED/OBD_FAIL_ONCE" check and set to avoid
   unexpected racing condition between multi-thread ops.
4) some cleanup for OBD_FAIL_XXX macro.
22 files changed:
lustre/include/linux/obd_support.h
lustre/include/obd_support.h
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_lockd.c
lustre/lvfs/lvfs_lib.c
lustre/mdd/mdd_lov.c
lustre/mds/handler.c
lustre/mds/mds_fs.c
lustre/mds/mds_open.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_open.c
lustre/mdt/mdt_recovery.c
lustre/obdclass/class_obd.c
lustre/obdclass/darwin/darwin-sysctl.c
lustre/obdclass/linux/linux-sysctl.c
lustre/obdclass/llog_cat.c
lustre/osc/osc_request.c
lustre/ost/ost_handler.c
lustre/ptlrpc/gss/sec_gss.c
lustre/ptlrpc/niobuf.c
lustre/quota/quota_master.c