Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-04-10 Thread Greg Thelen
On Wed, Apr 10 2013, Andrew Morton wrote: > On Tue, 09 Apr 2013 17:37:20 -0700 Greg Thelen wrote: > >> > Call cond_resched() in shrink_dcache_parent() to maintain >> > interactivity. >> > >> > Before this patch: >> > >> > void shrink_dcache_parent(struct dentry * parent) >> > { >> >while

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-04-10 Thread Andrew Morton
On Tue, 09 Apr 2013 17:37:20 -0700 Greg Thelen wrote: > > Call cond_resched() in shrink_dcache_parent() to maintain > > interactivity. > > > > Before this patch: > > > > void shrink_dcache_parent(struct dentry * parent) > > { > > while ((found = select_parent(parent, )) != 0) > >

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-04-10 Thread Andrew Morton
On Tue, 09 Apr 2013 17:37:20 -0700 Greg Thelen gthe...@google.com wrote: Call cond_resched() in shrink_dcache_parent() to maintain interactivity. Before this patch: void shrink_dcache_parent(struct dentry * parent) { while ((found = select_parent(parent, dispose)) != 0)

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-04-10 Thread Greg Thelen
On Wed, Apr 10 2013, Andrew Morton wrote: On Tue, 09 Apr 2013 17:37:20 -0700 Greg Thelen gthe...@google.com wrote: Call cond_resched() in shrink_dcache_parent() to maintain interactivity. Before this patch: void shrink_dcache_parent(struct dentry * parent) { while ((found =

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-04-09 Thread Greg Thelen
On Mon, Mar 25 2013, Greg Thelen wrote: > On Mon, Mar 25 2013, Dave Chinner wrote: > >> On Mon, Mar 25, 2013 at 05:39:13PM -0700, Greg Thelen wrote: >>> On Mon, Mar 25 2013, Dave Chinner wrote: >>> > On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: >>> >> Call cond_resched() from

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-04-09 Thread Greg Thelen
On Mon, Mar 25 2013, Greg Thelen wrote: On Mon, Mar 25 2013, Dave Chinner wrote: On Mon, Mar 25, 2013 at 05:39:13PM -0700, Greg Thelen wrote: On Mon, Mar 25 2013, Dave Chinner wrote: On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: Call cond_resched() from shrink_dentry_list()

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Greg Thelen
On Mon, Mar 25 2013, Dave Chinner wrote: > On Mon, Mar 25, 2013 at 05:39:13PM -0700, Greg Thelen wrote: >> On Mon, Mar 25 2013, Dave Chinner wrote: >> > On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: >> >> Call cond_resched() from shrink_dentry_list() to preserve >> >>

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Dave Chinner
On Mon, Mar 25, 2013 at 05:39:13PM -0700, Greg Thelen wrote: > On Mon, Mar 25 2013, Dave Chinner wrote: > > On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: > >> Call cond_resched() from shrink_dentry_list() to preserve > >> shrink_dcache_parent() interactivity. > >> > >> void

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Greg Thelen
On Mon, Mar 25 2013, Dave Chinner wrote: > On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: >> Call cond_resched() from shrink_dentry_list() to preserve >> shrink_dcache_parent() interactivity. >> >> void shrink_dcache_parent(struct dentry * parent) >> { >> while ((found =

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Dave Chinner
On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: > Call cond_resched() from shrink_dentry_list() to preserve > shrink_dcache_parent() interactivity. > > void shrink_dcache_parent(struct dentry * parent) > { > while ((found = select_parent(parent, )) != 0) >

[PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Greg Thelen
Call cond_resched() from shrink_dentry_list() to preserve shrink_dcache_parent() interactivity. void shrink_dcache_parent(struct dentry * parent) { while ((found = select_parent(parent, )) != 0) shrink_dentry_list(); } select_parent() populates the dispose list with

[PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Greg Thelen
Call cond_resched() from shrink_dentry_list() to preserve shrink_dcache_parent() interactivity. void shrink_dcache_parent(struct dentry * parent) { while ((found = select_parent(parent, dispose)) != 0) shrink_dentry_list(dispose); } select_parent() populates the dispose

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Dave Chinner
On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: Call cond_resched() from shrink_dentry_list() to preserve shrink_dcache_parent() interactivity. void shrink_dcache_parent(struct dentry * parent) { while ((found = select_parent(parent, dispose)) != 0)

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Greg Thelen
On Mon, Mar 25 2013, Dave Chinner wrote: On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: Call cond_resched() from shrink_dentry_list() to preserve shrink_dcache_parent() interactivity. void shrink_dcache_parent(struct dentry * parent) { while ((found =

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Dave Chinner
On Mon, Mar 25, 2013 at 05:39:13PM -0700, Greg Thelen wrote: On Mon, Mar 25 2013, Dave Chinner wrote: On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: Call cond_resched() from shrink_dentry_list() to preserve shrink_dcache_parent() interactivity. void

Re: [PATCH] vfs: dcache: cond_resched in shrink_dentry_list

2013-03-25 Thread Greg Thelen
On Mon, Mar 25 2013, Dave Chinner wrote: On Mon, Mar 25, 2013 at 05:39:13PM -0700, Greg Thelen wrote: On Mon, Mar 25 2013, Dave Chinner wrote: On Mon, Mar 25, 2013 at 10:22:31AM -0700, Greg Thelen wrote: Call cond_resched() from shrink_dentry_list() to preserve shrink_dcache_parent()