Re: __list_lru_walk_one() acquiring spin lock for longer time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux