Whamcloud - gitweb
LU-11519 hsm: handle hsd_request_count == 0 properly 80/33580/6
authorJohn L. Hammond <jhammond@whamcloud.com>
Mon, 5 Nov 2018 17:48:55 +0000 (11:48 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 21 Nov 2018 04:06:09 +0000 (04:06 +0000)
commitaf05afdfb5781806ab3bc059c86c289b01713ade
tree2164b2785cf0028339f757797bcd62512ac347ae
parentf785fcaa7b7fe600bd29efe0ce509beea7ac2095
LU-11519 hsm: handle hsd_request_count == 0 properly

In mdt_cdt_waiting_cb() it may be that the coordinator has already
reached the limit of active requests and hsd contains no requests to
be started. Handle this properly when trying to prioritize a restore.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: Ic843b7672ae6a4509ac127c2d2f90bf3681f84fc
Reviewed-on: https://review.whamcloud.com/33580
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Reviewed-by: Ben Evans <bevans@cray.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_coordinator.c