Whamcloud - gitweb
LU-14125 osc: prevent overflow of o_dropped 15/40615/8
authorOlaf Faaland <faaland1@llnl.gov>
Wed, 11 Nov 2020 22:38:25 +0000 (14:38 -0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Mar 2021 23:21:19 +0000 (23:21 +0000)
commit1da8349175a136df0aadb28ae0e0f64ac0385961
treeb923956040127da376457bf7dc08b61c601461de
parent8c74fe2c6c3f8472ddf39f6ccc5e9c3744de344d
LU-14125 osc: prevent overflow of o_dropped

In osc_announce_cached(), prevent o_dropped from overflowing.
Necessary because o_dropped AKA o_misc is 32 bits, but cl_lost_grant
is 64 bits.

Add a CDEBUG call so we can tell whether this happened.

Lustre-change: https://review.whamcloud.com/40659
Lustre-commit: 82e9a11056a55289c880786da71d8b1125f357b2

Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Change-Id: Ia459934c789ae9609f851ae0a2581de583c6fc1c
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/40615
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osc/osc_request.c