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

Jens Axboe
2007-05-10T11:21:15Z

On Thu, May 10 2007, Andrew Morton wrote:
> On Thu, 10 May 2007 12:21:54 +0200 Jens Axboe <jens.axboe@oracle.com> 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@oracle.com>
> > ---
> > 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