Whamcloud - gitweb
LU-11605 osp: max_create_count and create_count changes 61/34161/2
authorSergey Cheremencev <c17829@cray.com>
Wed, 29 Aug 2018 19:20:36 +0000 (22:20 +0300)
committerOleg Drokin <green@whamcloud.com>
Fri, 15 Feb 2019 01:28:21 +0000 (01:28 +0000)
commitd3df5c9e28b08384b38ede65b9c7d9d918649fa6
tree9e718fefef46f7e7c4504af887ae237a65cd08b6
parentf8bb7b1a04543de759b863ee06cfccb83d908856
LU-11605 osp: max_create_count and create_count changes

Setting max_create_count to 0 causes setting create_count
to 0. Set create_count to OST_MIN_PRECREATE when setting
back max_create_count.
Without the patch create_count remains equal to 0 despite
on changing max_create_count to something != 0.
This causes create to stuck in osp_precreate_reserve
because osp_precreate_send doesn't send new request to OST.
To understand the number of objects to precreate(grow) it
uses opd_pre_create_count that is equal to 0.

Lustre-commit: a531ab5f38a6da1de7948df979ae839aa847a370
Lustre-change: https://review.whamcloud.com/33559

Cray-bug-id: LUS-6435
Change-Id: I940c48f91e9c7d49b766bd85ea271ce229424c7f
Signed-off-by: Sergey Cheremencev <c17829@cray.com>
Reviewed-by: Alexander Zarochentsev <c17826@cray.com>
Reviewed-by: Artem Blagodarenko <c17828@cray.com>
Tested-by: Elena Gryaznova <c17455@cray.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34161
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
lustre/osp/lproc_osp.c
lustre/tests/sanity.sh