Whamcloud - gitweb
LU-13763 osc: don't allow negative grants 80/39380/4
authorMikhail Pershin <mpershin@whamcloud.com>
Wed, 15 Jul 2020 05:42:49 +0000 (08:42 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 15 Sep 2020 05:09:33 +0000 (05:09 +0000)
commitf96aa90548f062e95d2ef4c9ea978ba0e08aae19
tree25800d4fe955f4674f56a59ba08dd495b32318e1
parentab95f0c361a1e0e65ac51fe15ada4cb1e7eeaa1e
LU-13763 osc: don't allow negative grants

Add check in the osc_init_grant() to prevent possible
underflow of cl_avail_grant and report error if it happens

Lustre-change: https://review.whamcloud.com/#/c/39827
Lustre-commit: e05ccafd6ee214895d01efbb13a3757e3625a859

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: Idcd25ed427c23735e1cdc70359bace43b5b9d886
Reviewed-on: https://review.whamcloud.com/39380
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osc/osc_request.c