linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Redirecting request
@ 2002-10-28 13:45 MShetty
  2002-10-28 16:24 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: MShetty @ 2002-10-28 13:45 UTC (permalink / raw)
  To: linux-scsi

Hi,

In my make_request function (registered with blk_queue_make_request) I
want to redirect the current request to "sd". To achieve this is it
sufficient to write :
bh->b_rdev = MKDEV(SCSI_DISK0_MAJOR, 0);

where bh is buffer_head

Thanks and Regards,
M Shetty


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

* Re: Redirecting request
  2002-10-28 13:45 Redirecting request MShetty
@ 2002-10-28 16:24 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2002-10-28 16:24 UTC (permalink / raw)
  To: MShetty; +Cc: linux-scsi

On Mon, Oct 28 2002, MShetty wrote:
> Hi,
> 
> In my make_request function (registered with blk_queue_make_request) I
> want to redirect the current request to "sd". To achieve this is it
> sufficient to write :
> bh->b_rdev = MKDEV(SCSI_DISK0_MAJOR, 0);
> 
> where bh is buffer_head

If b_rsector already points to the right offset off /dev/sda (not
partition), then yes.

-- 
Jens Axboe


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

end of thread, other threads:[~2002-10-28 16:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-28 13:45 Redirecting request MShetty
2002-10-28 16:24 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).