lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 23 May 2008 14:22:31 +1000
From:	David Chinner <dgc@....com>
To:	Kentaro Makita <k-makita@...css.fujitsu.com>
Cc:	linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
	akpm@...ux-foundation.org, dgc@....com, viro@...IV.linux.org.uk,
	harvey.harrison@...il.com
Subject: Re: [PATCH][RFC]fix soft lock up at NFS mount by per-SB LRU-list of unused dentries

On Fri, May 23, 2008 at 11:15:19AM +0900, Kentaro Makita wrote:
> Hi, David
> 
> Thank you for reviewing the patch.
> I'd fix coding style issues at next post. And,...
> 
> David Chinner wrote:
> > On Thu, May 22, 2008 at 11:22:18AM +0900, Kentaro Makita wrote:
> >> +			}
> >> +		}
> >> +	}
> > 
> > I'm wondering if this loop is an excessively long time to be holding the
> > dcache_lock. I guess the hol dtime is limited by the size of *count being
> > passed in. I think we could also do a:
> > 
> > 		cond_resched_lock(&dcache_lock);
> > 	
> > in the loop here to prevent this from occurring....
> Did you mean:
>  - scan sb->s_dentry_lru and move dentries to temporary list
>    with lock held
>  - cond_resched_lock(&dcache_lock);
>  - prune dentries on temporary list
> Is that right?

No, I meant while scanning sb->s_dentry_lru.

Cheers,

Dave.
-- 
Dave Chinner
Principal Engineer
SGI Australian Software Group
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ