linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] target: Updates for HW target mode
@ 2010-12-13 23:58 Nicholas A. Bellinger
  2010-12-13 23:58 ` [PATCH 1/2] target: Fix tfo->write_pending() fabric callback ordering Nicholas A. Bellinger
  2010-12-13 23:58 ` [PATCH 2/2] target: Convert se_nacl->nacl_sess_lock to use spin_lock_irq() Nicholas A. Bellinger
  0 siblings, 2 replies; 3+ messages in thread
From: Nicholas A. Bellinger @ 2010-12-13 23:58 UTC (permalink / raw)
  To: linux-scsi, Christoph Hellwig
  Cc: Mike Christie, Hannes Reinecke, FUJITA Tomonori, James Bottomley,
	Nicholas Bellinger

From: Nicholas Bellinger <nab@linux-iscsi.org>

Greetings folks,

This short series fixes two issues found in target core code during recent
HW target mode module development and validation.  These two patches have been
merged into lio-core-2.6.git/lio-4.0 and master, and now allow generic HW target
mode to function using TCM code for the upcoming v4.0.0-rc6 release.

Patch #1 involves changing transport_generic_write_pending() to make sure
that transport_generic_handle_data() will never have to sleep waiting for
the struct target_core_fabric_ops->write_pending() callback to complete.

Patch #2 changes locking access to the struct se_nacl->nacl_sess_lock to
disable interrupts using spin_lock_irq(), and handles the special case for
target_core_pr.c: core_scsi3_pri_read_full_status() so that
transport_deregister_session_configfs() can be called directly from interrupt
context during HW target mode NEXUS -> TCM session shutdown and reset.

So far these have been tested using FC HW target mode via PCIe device-passthrough
from within KVM guest on .37-rc3 code.  This FC HW target module code will be
posted seperately to linux-scsi for review.

Thanks,

Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>

Nicholas Bellinger (2):
  target: Fix tfo->write_pending() fabric callback ordering
  target: Convert se_nacl->nacl_sess_lock to use spin_lock_irq()

 drivers/target/target_core_fabric_lib.c |    8 +++---
 drivers/target/target_core_pr.c         |   11 ++++++++
 drivers/target/target_core_transport.c  |   39 ++++++++++++++++---------------
 3 files changed, 35 insertions(+), 23 deletions(-)


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

end of thread, other threads:[~2010-12-13 23:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-13 23:58 [PATCH 0/2] target: Updates for HW target mode Nicholas A. Bellinger
2010-12-13 23:58 ` [PATCH 1/2] target: Fix tfo->write_pending() fabric callback ordering Nicholas A. Bellinger
2010-12-13 23:58 ` [PATCH 2/2] target: Convert se_nacl->nacl_sess_lock to use spin_lock_irq() Nicholas A. Bellinger

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