Whamcloud - gitweb
LU-12614 ldlm: ldlm_cancel_hpreq_check should check lock count 07/36107/2
authorOleg Drokin <green@whamcloud.com>
Sat, 17 Aug 2019 05:43:36 +0000 (01:43 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 18 Sep 2019 04:24:24 +0000 (04:24 +0000)
commit4c4c4ca3a6c1c1e62a74fc25f76dd1dfa81e5265
tree1329d9355541cd97497156a5611aa7395b46c0ab
parent92d09db94d725bb36a81bda6219c4ec9dfd17d0a
LU-12614 ldlm: ldlm_cancel_hpreq_check should check lock count

Make sure the number of locks we are going to cancel fits into
the supplied buffer first.
This is similar to LU-12603, just in a different place.

Lustre-change: https://review.whamcloud.com/35807
Lustre-commit: 2b7af478bdbf5c6701e0e49aefe34597bdee3126

Change-Id: Ifa2aa976ce8613217c739ef609de54538c57b5e9
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reported-by: Alibaba Cloud <yunye.ry@alibaba-inc.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Yunye Ry <yunye.ry@alibaba-inc.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/36107
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/ldlm/ldlm_lockd.c