Whamcloud - gitweb
LU-12614 ldlm: ldlm_cancel_hpreq_check should check lock count 07/35807/2
authorOleg Drokin <green@whamcloud.com>
Sat, 17 Aug 2019 05:43:36 +0000 (01:43 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 3 Sep 2019 05:12:32 +0000 (05:12 +0000)
commit2b7af478bdbf5c6701e0e49aefe34597bdee3126
treeae3fba689974e0853918f54f655177f649b8850b
parent0f6302471fd2344aaac58a3b12af2ae108b57f90
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.

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