All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] older SG interface fixes (for the block layer conversion)
@ 2008-09-02  7:20 FUJITA Tomonori
  2008-09-02  7:20 ` [PATCH 1/2] block: make blk_rq_map_user take a NULL user-space buffer FUJITA Tomonori
  2008-09-02  7:31 ` [PATCH 0/2] older SG interface fixes (for the block layer conversion) Jens Axboe
  0 siblings, 2 replies; 4+ messages in thread
From: FUJITA Tomonori @ 2008-09-02  7:20 UTC (permalink / raw)
  To: jens.axboe; +Cc: linux-scsi, dougg, michaelc, James.Bottomley, fujita.tomonori

I messed up the older SG interface's READ commands.

With READ commands via the older SG interface, we don't know a
user-space address to transfer the result data when executing a SCSI
command. So we can't pass a user-space address to blk_rq_map_user.

This changes blk_rq_map_user to takes a NULL user-space address. That
is, sg uses blk_rq_map_user to just set up a request and bios with
page frames without data transfer (similar to what scsi_req_map_sg
does for sg now).

blk_rq_map_user doesn't map a user space address so the name,
blk_rq_map_user, might be odd but I leave it alone.



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

end of thread, other threads:[~2008-09-02  7:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-02  7:20 [PATCH 0/2] older SG interface fixes (for the block layer conversion) FUJITA Tomonori
2008-09-02  7:20 ` [PATCH 1/2] block: make blk_rq_map_user take a NULL user-space buffer FUJITA Tomonori
2008-09-02  7:20   ` [PATCH 2/2] sg: set dxferp to NULL for READ with the older SG interface FUJITA Tomonori
2008-09-02  7:31 ` [PATCH 0/2] older SG interface fixes (for the block layer conversion) Jens Axboe

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.