public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* hard_sector / hard_nr_sectors
@ 2000-10-30 18:56 Al Peat
  2000-10-31  1:08 ` Andrea Arcangeli
  0 siblings, 1 reply; 2+ messages in thread
From: Al Peat @ 2000-10-30 18:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: al_kernel

  I was wondering if someone could give me a quick
overview of the differences between sector/nr_sectors
and hard_sector/hard_nr_sectors in blk_dev.h's request
structure, or point me to some
documentation/discussion on this?

    Thanks in advance,
            Al

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: hard_sector / hard_nr_sectors
  2000-10-30 18:56 hard_sector / hard_nr_sectors Al Peat
@ 2000-10-31  1:08 ` Andrea Arcangeli
  0 siblings, 0 replies; 2+ messages in thread
From: Andrea Arcangeli @ 2000-10-31  1:08 UTC (permalink / raw)
  To: Al Peat; +Cc: linux-kernel

On Mon, Oct 30, 2000 at 10:56:39AM -0800, Al Peat wrote:
>   I was wondering if someone could give me a quick
> overview of the differences between sector/nr_sectors
> and hard_sector/hard_nr_sectors in blk_dev.h's request
> structure, or point me to some
> documentation/discussion on this?

The reason hard_nr_sectors is been introduced is that it allows all device
drivers to handle merged I/O requests transparently. In 2.4.x we do merging at
the highlevel layer unconditionally and so it was necessary to avoid breakage
of lowlevel drivers.

This way device drivers can limit themself to look at
current_request->buffer/current_nr_sectors/sector... and to call end_request(1)
once the I/O is completed (end_that_request_first will take care of updating
current->sector/nr_sector for the next pass of the request_fn without the need
of ugly changes to the lowlevel drivers).

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-10-31  1:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-30 18:56 hard_sector / hard_nr_sectors Al Peat
2000-10-31  1:08 ` Andrea Arcangeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox