public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] block: blk_rq_map/unamp patches
@ 2008-04-02 16:52 FUJITA Tomonori
  2008-04-02 16:52 ` [PATCH 1/2] block: move the padding adjustment to blk_rq_map_sg FUJITA Tomonori
  0 siblings, 1 reply; 12+ messages in thread
From: FUJITA Tomonori @ 2008-04-02 16:52 UTC (permalink / raw)
  To: linux-scsi
  Cc: tomof, jens.axboe, James.Bottomley, htejun, michaelc,
	fujita.tomonori

I'm still working to convert sg (st and osst) to use the blk mapping
API. Here's two patches for these functions that I like to be merged
into mainline before that work.

The first patch is a repost with a proper description, a patch to move
the padding adjustment from blk_rq_map_user to blk_rq_map_sg. This
patch affects only libata and I tested this patch with my CD-R drive
using libata and it works fine. Tejun, does this change break
something in libata?

The second patch changes blk_rq_unmap_user to take a request instead
of a bio. A pointer to a bio is added to request struct (Mike did the
same thing when adding multiple bio support to the API). I know that
it's not nice to add something to request struct, however, the
asymmetry of the map/unmap API lead to trouble easily (it led to bugs
in the past). I think that it worth doing that to avoid future
trouble.

Jens, any comments?




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

end of thread, other threads:[~2008-04-10  1:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-02 16:52 [PATCH 0/2] block: blk_rq_map/unamp patches FUJITA Tomonori
2008-04-02 16:52 ` [PATCH 1/2] block: move the padding adjustment to blk_rq_map_sg FUJITA Tomonori
2008-04-02 16:53   ` [PATCH 2/2] block: change blk_rq_unmap_user to take a request instead of a bio FUJITA Tomonori
2008-04-03  3:34   ` [PATCH 1/2] block: move the padding adjustment to blk_rq_map_sg Tejun Heo
2008-04-07 11:07     ` FUJITA Tomonori
2008-04-07 11:31       ` Tejun Heo
2008-04-07 13:11         ` FUJITA Tomonori
2008-04-07 13:24           ` Tejun Heo
2008-04-07 23:35             ` FUJITA Tomonori
2008-04-08  1:49               ` Tejun Heo
2008-04-08  2:37                 ` FUJITA Tomonori
2008-04-10  1:54                   ` Tejun Heo

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