Whamcloud - gitweb
LU-9019 llite: fix timeout to not be zero 92/35992/2
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 29 Aug 2019 14:24:10 +0000 (08:24 -0600)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Sep 2019 01:49:18 +0000 (01:49 +0000)
commit6fbfb01be3c45c60c418ca37280d2378f91bc565
tree54464c5f22b532cdc31b822484e71390b320c8ec
parent39862136c3cfee127c4b0a9604ff12f560af3124
LU-9019 llite: fix timeout to not be zero

The timeout in ll_kill_super() is intended to be
1/8 of a second, while it loops waiting on other
threads to finish.  However, this was incorrectly
calculated to always be 0 (infinite wait) due to
integer division.

Instead, convert seconds to jiffies before division.

Fixes: 0c2cc920370e ("LU-9019 libcfs: avoid using HZ and msecs_to_jiffies()")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I33efbfc2d6c0a9c4ae6404c1974c7593a72540e5
Reviewed-on: https://review.whamcloud.com/35992
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/llite_lib.c
lustre/mgc/mgc_request.c