Whamcloud - gitweb
LU-56 ptlrpc: svc thread starting/stopping cleanup
authorLiang Zhen <liang@whamcloud.com>
Fri, 25 May 2012 12:40:24 +0000 (20:40 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 26 Jun 2012 16:04:24 +0000 (12:04 -0400)
commitff0c89a73e141ce019ee2a94e5d01a8a37dd830a
tree025d42456b956002bddb3195c8edd2945b6720b1
parent12b6c0b993bca79091d035cbe4cf1805d8adcc47
LU-56 ptlrpc: svc thread starting/stopping cleanup

This patch covered two things:
- serialize creation of ptlrpc service thread
  In current version we can parallel create service threads, so there
  could be "hole" of thread ID if one creation failed, it could be
  problemaic because some modules require thread ID to be strictly
  contiguous and unique. Serializing thread creation can resolve this
  issue.
- code cleanup for for stopping of ptlrpc servcie threads, this is
  just for the next step work of partitioned ptlrpc service.

Signed-off-by: Liang Zhen <liang@whamcloud.com>
Change-Id: Ied8ad89003aa9d53fa73a4e5166a2c8d07a1aae9
Reviewed-on: http://review.whamcloud.com/2912
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: wangdi <di.wang@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre_net.h
lustre/ptlrpc/pinger.c
lustre/ptlrpc/ptlrpc_internal.h
lustre/ptlrpc/service.c