linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] target: Per session tag pooling WIP using lib/tags
@ 2013-06-08  2:42 Nicholas A. Bellinger
  2013-06-08  2:42 ` [PATCH 1/3] Percpu tag allocator Nicholas A. Bellinger
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Nicholas A. Bellinger @ 2013-06-08  2:42 UTC (permalink / raw)
  To: target-devel
  Cc: linux-scsi, Christoph Hellwig, Roland Dreier, Kent Overstreet,
	Asias He, Michael S. Tsirkin, Or Gerlitz, Moussa Ba,
	Nicholas Bellinger

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

Hi folks.

Here is an initial series for adding target descriptor pre-allocation
support based upon Kent's excellent per-cpu struct tag_pool library code.

It allows fabric drivers to avoid fast path memory allocation/free
overhead up to the number of registered struct tag_pool tags known at
se_session creation time, similar to how blk-mq currently works using
hw tag resource pre-allocation of struct request and friends.

Thus far vhost/scsi has been updated to use se_sess->sess_tag_pool,
and patches doing similar fabric driver pre-allocation conversions
are currently a WIP..

Also given lib/tags is not upstream just yet, Kent's patch is included
here for review context.

Thank you,

--nab

Kent Overstreet (1):
  Percpu tag allocator

Nicholas Bellinger (2):
  target: Add transport_init_session_tagpool using per-cpu command map
  vhost/scsi: Convert to generic tag_alloc + tag_free command map

 drivers/target/target_core_transport.c |   33 +++++++
 drivers/vhost/scsi.c                   |   31 ++++---
 include/linux/tags.h                   |   38 +++++++
 include/target/target_core_base.h      |    5 +
 include/target/target_core_fabric.h    |    1 +
 lib/Kconfig                            |    4 +
 lib/Makefile                           |    5 +-
 lib/tags.c                             |  166 ++++++++++++++++++++++++++++++++
 8 files changed, 269 insertions(+), 14 deletions(-)
 create mode 100644 include/linux/tags.h
 create mode 100644 lib/tags.c

-- 
1.7.2.5


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

end of thread, other threads:[~2013-06-08 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-08  2:42 [PATCH 0/3] target: Per session tag pooling WIP using lib/tags Nicholas A. Bellinger
2013-06-08  2:42 ` [PATCH 1/3] Percpu tag allocator Nicholas A. Bellinger
2013-06-08 15:07   ` Oleg Nesterov
2013-06-08  2:42 ` [PATCH 2/3] target: Add transport_init_session_tagpool using per-cpu command map Nicholas A. Bellinger
2013-06-08  2:42 ` [PATCH 3/3] vhost/scsi: Convert to generic tag_alloc + tag_free " 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).