Whamcloud - gitweb
b=21988 serialize mdt and obd state bit access
authorAlexander.Zarochentsev <Alexander.Zarochentsev@Sun.COM>
Tue, 2 Mar 2010 01:57:39 +0000 (17:57 -0800)
committerRobert Read <rread@sun.com>
Tue, 2 Mar 2010 01:57:39 +0000 (17:57 -0800)
commit4fb0d6f5a7cc4ac4a14a3710cd9795f87c41f49f
tree696fc58009461bfbe37612fcb592222257a05567
parent6fb6eb237787fcfd072f8583a590d96838300a54
b=21988 serialize mdt and obd state bit access

Use atomic bit functions to access mdt state in mdt_allow_cli(). Otherwise bit
updates can be lost in case of concurrent modifications. Protect obd_no_conn =
0 by the obd_task_processing_lock spinlock as in the rest of the code
excluding setup.

i=tappro
i=robert.read
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h