Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1305692

[PATCH-for-4.6 0/6] target: Introduce target_alloc_session helper

From "Nicholas A. Bellinger" <nab@daterainc.com>
Newsgroups linux.kernel
Subject [PATCH-for-4.6 0/6] target: Introduce target_alloc_session helper
Date 2016-01-10 21:50 +0100
Message-ID <qPv62-Kq-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Hi folks,

As per HCH, consolidating se_session init -> lookup -> register
into a single helper has a number of benefits.

This version of the target_alloc_session() helper supports
percpu-ida tag allocation, and a (*callback)() for allowing
fabric driver code to complete internal setup before target
calls transport_register_session() to complete the operation.

That said, here's a first shot for the tree wide-conversion,
which should be considered post v4.5 material at this point,
considering it's purely a mechanical change.

Please review,

--nab

Christoph Hellwig (1):
  target: Convert demo-mode only drivers to target_alloc_session

Nicholas Bellinger (5):
  target: Add target_alloc_session() helper function
  vhost/scsi: Convert to target_alloc_session usage
  tcm_qla2xxx: Convert to target_alloc_session usage
  tcm_fc: Convert to target_alloc_session usage
  ib_srpt: Convert to target_alloc_session usage

 drivers/infiniband/ulp/srpt/ib_srpt.c  | 23 +++-----
 drivers/scsi/qla2xxx/qla_target.c      |  8 +--
 drivers/scsi/qla2xxx/qla_target.h      |  2 +-
 drivers/scsi/qla2xxx/tcm_qla2xxx.c     | 79 +++++++++++++--------------
 drivers/target/loopback/tcm_loop.c     | 35 +++---------
 drivers/target/sbp/sbp_target.c        | 33 +++---------
 drivers/target/target_core_transport.c | 55 +++++++++++++++++++
 drivers/target/tcm_fc/tfc_sess.c       | 47 ++++++++--------
 drivers/usb/gadget/function/f_tcm.c    | 45 +++++-----------
 drivers/vhost/scsi.c                   | 99 ++++++++++++++--------------------
 drivers/xen/xen-scsiback.c             | 51 +++++-------------
 include/target/target_core_fabric.h    |  6 +++
 12 files changed, 218 insertions(+), 265 deletions(-)

-- 
1.9.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH-for-4.6 0/6] target: Introduce target_alloc_session helper "Nicholas A. Bellinger" <nab@daterainc.com> - 2016-01-10 21:50 +0100
  [PATCH-for-4.6 2/6] target: Convert demo-mode only drivers to target_alloc_session "Nicholas A. Bellinger" <nab@daterainc.com> - 2016-01-10 21:50 +0100
  [PATCH-for-4.6 4/6] tcm_qla2xxx: Convert to target_alloc_session usage "Nicholas A. Bellinger" <nab@daterainc.com> - 2016-01-10 21:50 +0100
  [PATCH-for-4.6 5/6] tcm_fc: Convert to target_alloc_session usage "Nicholas A. Bellinger" <nab@daterainc.com> - 2016-01-10 21:50 +0100

csiph-web