All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] [Target_Core_Mod/pSCSI]: Updates for v2.6.31-rc
@ 2009-08-08 20:11 Nicholas A. Bellinger
  0 siblings, 0 replies; only message in thread
From: Nicholas A. Bellinger @ 2009-08-08 20:11 UTC (permalink / raw)
  To: linux-scsi; +Cc: Boaz Harrosh, James Bottomley, FUJITA Tomonori

Greetings,

The following are patches for v2.6.31-rc5 to get the TCM/pSCSI subsystem plugin
running again.

The first patch converts TCM/pSCSI to use the new blk_make_request() (Thanks Boaz!)
to map physical memory (struct page) -> struct bio -> struct request for
SCF_SCSI_DATA_SG_IO_CDB type I/O.  This is done by using bio_kmalloc() to obtain
struct bio, and each struct page is  set using bio_add_pg_page() in pscsi_map_task_SG().
If the received CDB's payload exceeds BIO_MAX_PAGES, bio_kmalloc() will be called again
and the bios will be chained together before calling blk_make_request() and
pscsi_blk_init_request() to complete initialization of the struct request.

The second patch removes a call to dev_get_drvdata() for TYPE_ROM that previously
had been obtaining struct scsi_cd to access struct gendisk for passing into
blk_execute_rq_nowait().  This had been causing an OOPs on v2.6.31-rc5 with physical
TYPE_ROM, so it has been removed and blk_execute_rq_nowait() seems to work fine w/o
the struct gendisk pointer for TYPE_ROM.

Boaz and co, any comments you can make on the blk_make_request() usage in Patch 1
is greatly apperciated.

--nab

[PATCH 1/2] [Target_Core_Mod/pSCSI]: Use blk_make_request() in v2.6.31-rc
[PATCH 2/2] [Target_Core_Mod/pSCSI]: Fix bug with struct scsi_cd access for blk_execute_rq_nowait()

 drivers/target/target_core_pscsi.c |  134 ++++++++++++++++++++++-------------
 1 files changed, 84 insertions(+), 50 deletions(-)




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-08 20:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-08 20:11 [PATCH 0/2] [Target_Core_Mod/pSCSI]: Updates for v2.6.31-rc Nicholas A. Bellinger

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.