Whamcloud - gitweb
LU-11653 hsm: copytool registration wakes the coordinator 49/33649/8
authorQuentin Bouget <quentin.bouget@cea.fr>
Mon, 12 Nov 2018 19:50:20 +0000 (20:50 +0100)
committerOleg Drokin <green@whamcloud.com>
Wed, 28 Nov 2018 19:14:05 +0000 (19:14 +0000)
commite7d5c1681c0767e07d2280fa58cf39fc1ae8df2a
treefc73230dc653ee5e1feb5a73463996b0d5df27fb
parentcad65d162273daf67ce9106897430faadb3ad5f6
LU-11653 hsm: copytool registration wakes the coordinator

When a copytool registers to the MDS, it is possible there are
pending requests in the coordinator's llog that previously could not
be sent (either because there were not any copytools, or not any
compatible copytools).

With this patch, the coordinator will process those requests on its
next wake up (which happens every second).

Test-Parameters: trivial
Test-Parameters: mdscount=2 mdtcount=4 mdtfilesystemtype=zfs testlist=sanity-hsm
Test-Parameters: mdscount=2 mdtcount=4 mdtfilesystemtype=ldiskfs testlist=sanity-hsm
Test-Parameters: mdscount=2 mdtcount=4 mdtfilesystemtype=zfs testlist=sanity-hsm
Test-Parameters: mdscount=2 mdtcount=4 mdtfilesystemtype=ldiskfs testlist=sanity-hsm

Signed-off-by: Quentin Bouget <quentin.bouget@cea.fr>
Change-Id: Ie49b40d312f2f3e0d9c85dee27bb8813dc4dde40
Reviewed-on: https://review.whamcloud.com/33649
Tested-by: Jenkins
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_hsm_cdt_agent.c
lustre/tests/sanity-hsm.sh