xfs
[Top] [All Lists]

Re: [PATCH] backing dev unplugging

To: Nathan Scott <nathans@xxxxxxx>
Subject: Re: [PATCH] backing dev unplugging
From: Steve Lord <lord@xxxxxxx>
Date: Wed, 10 Mar 2004 17:32:05 -0600
Cc: Jens Axboe <axboe@xxxxxxx>, Linux Kernel <linux-kernel@xxxxxxxxxxxxxxx>, kenneth.w.chen@xxxxxxxxx, Andrew Morton <akpm@xxxxxxxx>, thornber@xxxxxxxxxx, linux-xfs@xxxxxxxxxxx
In-reply-to: <20040310222247.GA713@frodo>
References: <20040310124507.GU4949@suse.de> <20040310222247.GA713@frodo>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.5 (X11/20040208)
Nathan Scott wrote:
> 
> For this second one, we probably just want to ditch the flush_cnt
> there (this change is doing blk_run_address_space on every 32nd
> buffer target, and not the intervening ones).  We will be doing a
> bunch more blk_run_address_space calls than we probably need to,
> not sure if thats going to become an issue or not, let me prod
> some of the other XFS folks for more insight there...
> 
> thanks.
> 

The concept there was that we were just pushing things down into the
elevator in a batch, then unplugging it afterwards. The do it every
32 I/O's was added to avoid some request starvation issues - which are
probably historical now.

I was lazy and did not look at the context on the code, but there
are two paths in here. One is unmount flushing all the entries for
a specific filesystem, the other is background flushing. I think the
background flush activity can live without the blk_run_address_space
call being there at all. If we need to grab the lock on the metadata
later we will make the call then. The unmount case needs to call it,
but since that specifies a specific target, it can just make one
call.

Steve


<Prev in Thread] Current Thread [Next in Thread>