On 5/23/2017 4:53 PM, Jan Kara wrote:
On Thu 18-05-17 19:12:58, Sahitya Tummala wrote:
It looks like __list_lru_walk_one() is expected to take more time if there
are more number of dentries present. Any suggestion on how to optimize
the__list_lru_walk_one() path to avoid the above spin lockup condition?
Well, I suppose you can have 'cond_resched_lock(&nlru->lock)' check in
__list_lru_walk_one() and goto restart if it rescheduled...
Honza
Thanks for the suggestion. I have tested it and it is working fine. I
will send the patch for review.
Thanks,
Sahitya
--
Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.