linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/10] sg buffer copy helper functions
@ 2008-03-09  4:44 FUJITA Tomonori
  2008-03-09  4:44 ` [PATCH 01/10] block: add " FUJITA Tomonori
                   ` (2 more replies)
  0 siblings, 3 replies; 38+ messages in thread
From: FUJITA Tomonori @ 2008-03-09  4:44 UTC (permalink / raw)
  To: linux-scsi
  Cc: tomof, James Bottomley, Jens Axboe, Douglas Gilbert,
	Geert Uytterhoeven, Tony Luck, Salyzyn, Mark, Ed Lin,
	Adam Radford

This patchset adds new two helper functions to copy data between an SG
table and liner buffer, and converts severl LLDs to use them.

The new APIs are used mainly in the code to spoof SCSI commands
(INQUIRY, READ CAPACITY, MODE SENSE etc), that is, LLDs build a fake
reposense and copy it to the sg list in scsi_cmnd struct. Several LLDs
have similar functions for such code. This patchset removes such
duplication.

Another reason to do this work is that because we relaxed the default
alignment requirements (from 511 to 3) post 2.6.24, the above commands
might come with multiple scatter gather entries but several LLDs make
the assumption that such commands come with only one sg entries and
can't handle multiple sg entries. The new APIs can handle multiple sg
entries so LLDs don't need to care about anything.

The first patch adds the new APIs to lib/scatterlist.c and the rest
are for SCSI. I like to push the whole patchset via scsi-misc (since
it's easier).

This is against scsi-misc (a6680f71ca27ea78c4c4e577076aecb9ace476f1).

 arch/ia64/hp/sim/simscsi.c    |   23 ++--------
 drivers/scsi/3w-9xxx.c        |   21 ++++-----
 drivers/scsi/3w-xxxx.c        |   12 +----
 drivers/scsi/aacraid/aachba.c |   49 ++++++++--------------
 drivers/scsi/ips.c            |   50 ++++-------------------
 drivers/scsi/ps3rom.c         |   92 ++++------------------------------------
 drivers/scsi/scsi_debug.c     |   79 ++++++-----------------------------
 drivers/scsi/stex.c           |   66 ++++-------------------------
 include/linux/scatterlist.h   |    5 ++
 include/scsi/scsi_cmnd.h      |   14 ++++++
 lib/scatterlist.c             |   90 ++++++++++++++++++++++++++++++++++++++++
 11 files changed, 182 insertions(+), 319 deletions(-)



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

end of thread, other threads:[~2008-03-17 14:06 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-09  4:44 [PATCH 00/10] sg buffer copy helper functions FUJITA Tomonori
2008-03-09  4:44 ` [PATCH 01/10] block: add " FUJITA Tomonori
2008-03-09  4:44   ` [PATCH 02/10] scsi: add wrapper functions for " FUJITA Tomonori
2008-03-09  4:44     ` [PATCH 03/10] scsi_debug: use " FUJITA Tomonori
2008-03-09  4:44       ` [PATCH 04/10] ps3rom: use sg buffer copy helper funcitons FUJITA Tomonori
2008-03-09  4:44         ` [PATCH 05/10] simscsi: " FUJITA Tomonori
2008-03-09  4:44           ` [PATCH 06/10] ips: " FUJITA Tomonori
2008-03-09  4:44             ` [PATCH 07/10] aacraid: use sg buffer copy helper functions FUJITA Tomonori
2008-03-09  4:44               ` [PATCH 08/10] stex: " FUJITA Tomonori
2008-03-09  4:44                 ` [PATCH 09/10] 3w-xxxx: " FUJITA Tomonori
2008-03-09  4:44                   ` [PATCH 10/10] 3w-9xxx: " FUJITA Tomonori
2008-03-10 12:45               ` [PATCH 07/10] aacraid: " Mark Salyzyn
2008-03-10 12:46             ` [PATCH 06/10] ips: use sg buffer copy helper funcitons Mark Salyzyn
2008-03-10 10:15         ` [PATCH 04/10] ps3rom: " Geert Uytterhoeven
2008-03-10 14:37   ` [PATCH 01/10] block: add sg buffer copy helper functions Jens Axboe
2008-03-10 10:14 ` [PATCH 00/10] " Geert Uytterhoeven
2008-03-10 14:34   ` FUJITA Tomonori
     [not found] ` <1205037877-12843-1-git-send-email-fujita.tomonori-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
2008-03-10 14:10   ` Boaz Harrosh
2008-03-10 22:39     ` FUJITA Tomonori
2008-03-11 10:05       ` Boaz Harrosh
2008-03-11 20:09       ` Alan Stern
2008-03-12  0:14         ` FUJITA Tomonori
2008-03-12  0:28           ` FUJITA Tomonori
2008-03-12  2:24             ` FUJITA Tomonori
2008-03-12 16:04             ` Alan Stern
2008-03-13  0:03               ` FUJITA Tomonori
2008-03-13  0:18                 ` FUJITA Tomonori
2008-03-13 18:34                   ` Alan Stern
2008-03-12 16:01           ` Alan Stern
2008-03-12 16:26             ` Boaz Harrosh
2008-03-13  0:03             ` FUJITA Tomonori
2008-03-13 18:32               ` Alan Stern
2008-03-14  9:35                 ` FUJITA Tomonori
     [not found]                   ` <20080314183434J.tomof-HInyCGIudOg@public.gmane.org>
2008-03-14 14:46                     ` Alan Stern
2008-03-16 11:55                       ` FUJITA Tomonori
2008-03-16 17:18                         ` Alan Stern
2008-03-17  3:23                           ` FUJITA Tomonori
2008-03-17 14:06                             ` Alan Stern

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).