Whamcloud - gitweb
LU-14125 osc: prevent overflow of o_dropped 59/40659/3
authorOlaf Faaland <faaland1@llnl.gov>
Wed, 11 Nov 2020 22:38:25 +0000 (14:38 -0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 26 Nov 2020 09:27:09 +0000 (09:27 +0000)
commit82e9a11056a55289c880786da71d8b1125f357b2
treefb94c991316453b5eb51b583585f86862c805884
parent2982978eb97e0607dfba319fcb2ef94d2cb8807a
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.

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