All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <jens.axboe@oracle.com>
To: gshan <gshan@alcatel-lucent.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: how to limit number of sectors each time
Date: Thu, 16 Oct 2008 07:44:01 +0200	[thread overview]
Message-ID: <20081016054400.GN19428@kernel.dk> (raw)
In-Reply-To: <48F6B51B.2000408@alcatel-lucent.com>

On Thu, Oct 16 2008, gshan wrote:
> Hi All,
> 
> I want to limit requested sectors each time in function 
> drivers/ide/ide-disk.c::__ide_do_rw_disk. The requested
> sectors were defined in rq->nr_sectors. So how to limit or decrease 
> nr_sectors for data transfer each time?

Set max_sectors_kb in sysfs for that device or q->max_sectors
internally.

-- 
Jens Axboe


  reply	other threads:[~2008-10-16  5:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-16  3:29 how to limit number of sectors each time gshan
2008-10-16  5:44 ` Jens Axboe [this message]
     [not found]   ` <48F6DA7A.9080003@alcatel-lucent.com>
     [not found]     ` <20081016061808.GS19428@kernel.dk>
2008-10-16  6:21       ` gshan
2008-10-16  6:25         ` Jens Axboe
2008-10-16  6:28           ` gshan
2008-10-17 16:47         ` Bartlomiej Zolnierkiewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081016054400.GN19428@kernel.dk \
    --to=jens.axboe@oracle.com \
    --cc=gshan@alcatel-lucent.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.