Whamcloud - gitweb
LU-12678 socklnd: use need_resched() 28/39128/2
authorMr NeilBrown <neilb@suse.de>
Sun, 7 Jun 2020 23:24:29 +0000 (19:24 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 4 Jul 2020 03:05:33 +0000 (03:05 +0000)
commit3f848f85ba3d33030e903bbdf8a9a9f21cd47303
treeb6fc9bdb70ba9d90cd0994fcc2c2b1ac3bc924d9
parente5574f72f2fd912ffa6b3e9a7bc2b69bd8370a22
LU-12678 socklnd: use need_resched()

Rather than using a counter to decide when to drop the lock and see if
we need to reshedule we can use need_resched(), which is a precise
test instead of a guess.

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: If13871a4a4c57ca87cbb1e22af85cb7fd24ab006
Reviewed-on: https://review.whamcloud.com/39128
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/socklnd/socklnd.h
lnet/klnds/socklnd/socklnd_cb.c