Whamcloud - gitweb
LU-11852 osc: skip cache entry wakeup without grants 13/34013/2
authorAlexander Boyko <c17825@cray.com>
Fri, 11 Jan 2019 07:49:51 +0000 (02:49 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 23 Jan 2019 09:19:10 +0000 (09:19 +0000)
commit34a5af721b2b5a2faae98050dec38767bb89a579
tree2208190f23ef2032efd155cb784613289c119d6c
parent55c973ba5cb595d51b4990eea9ad6803e7c0645e
LU-11852 osc: skip cache entry wakeup without grants

No need to wakeup osc_entry_cache waiters with EDQUOT or insufficent
grants, cause they will sleep again.
osc_enter_cache could skip queue of waiters if client has enough
grants. The fix adds list_empty checking and improves FIFO.

Signed-off-by: Alexander Boyko <c17825@cray.com>
Cray-bug-id: LUS-6119
Change-Id: I0a2415a19b2c8ecd7df3411d88cab9fee2470a10
Reviewed-on: https://review.whamcloud.com/34013
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andriy Skulysh <c17819@cray.com>
Reviewed-by: Andrew Perepechko <c17827@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osc/osc_cache.c