Whamcloud - gitweb
LU-5153 fld: lsf_lock in update_from_controller 31/10631/5
authorPatrick Farrell <paf@cray.com>
Mon, 9 Jun 2014 18:26:27 +0000 (13:26 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 16 Jun 2014 01:56:59 +0000 (01:56 +0000)
commitf288434cd97d4ce6314054ff73fe0e9ee03eb139
tree80e40bb4a85176dae7074ad57a9fa622f98d2171
parentb7c72ec1ddeda2cf94ea151f974d3f94e3a7d1ed
LU-5153 fld: lsf_lock in update_from_controller

The lsf_lock mutex must be held for calls to
fld_index_create, and is currently taken before calls to
fld_insert_entry.

This patch adds a comment and an assertion to
fld_insert_entry, and takes the mutex for the call in
fld_update_from_controller.

Also adds subsystem description from Di Wang to header file.

Signed-off-by: Patrick Farrell <paf@cray.com>
Change-Id: I3dcc9a53589d128343d9f386eaf7265f39ff5840
Reviewed-on: http://review.whamcloud.com/10631
Tested-by: Jenkins
Reviewed-by: wangdi <di.wang@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/fld/fld_handler.c
lustre/fld/fld_index.c
lustre/fld/fld_internal.h