Re: [PATCH 12/13] ll_rw_blk: temporarily enable max_segments tweaking

From: Jens Axboe
Date: Thu May 10 2007 - 07:21:16 EST


On Thu, May 10 2007, Andrew Morton wrote:
> On Thu, 10 May 2007 12:21:54 +0200 Jens Axboe <jens.axboe@xxxxxxxxxx> wrote:
>
> > Expose this setting for now, so that users can play with enabling
> > large commands without defaulting it to on globally.
> >
> > Signed-off-by: Jens Axboe <jens.axboe@xxxxxxxxxx>
> > ---
> > block/ll_rw_blk.c | 22 ++++++++++++++++++++++
> > 1 files changed, 22 insertions(+), 0 deletions(-)
> >
> > diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c
> > index b01a5f2..cf05396 100644
> > --- a/block/ll_rw_blk.c
> > +++ b/block/ll_rw_blk.c
> > @@ -3930,7 +3930,22 @@ static ssize_t queue_max_hw_sectors_show(struct request_queue *q, char *page)
> > return queue_var_show(max_hw_sectors_kb, (page));
> > }
> >
> > +static ssize_t queue_max_segments_show(struct request_queue *q, char *page)
> > +{
> > + return queue_var_show(q->max_phys_segments, page);
> > +}
> > +
> > +static ssize_t queue_max_segments_store(struct request_queue *q, const char *page, size_t count)
>
> 100-col xterm?

It's a debug thing, it'll go away for the final versions. So I didn't
pay much attention to details.

--
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/