From: Bart Van Assche <bart.vanassche@wdc.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org,
linux-nvme@lists.infradead.org,
Bart Van Assche <bart.vanassche@wdc.com>
Subject: [PATCH 0/8] Introduce sgl_alloc() and sgl_free()
Date: Thu, 12 Oct 2017 15:45:42 -0700 [thread overview]
Message-ID: <20171012224550.25440-1-bart.vanassche@wdc.com> (raw)
Hello Jens,
As you probably know there are multiple drivers that both allocate a
scatter/gather list and populate that list with pages. This patch series moves
the code for allocating and freeing such scatterlists from these drivers into
a new source file, namely lib/sgl_alloc. Please consider this patch series for
kernel v4.15.
Notes:
- Only the ib_srpt driver changes have been tested but none of the other
drivers have been retested.
- The next step is to introduce a caching mechanism for these scatterlists
and make the nvmet/rdma and SCSI target drivers use that caching mechanism
since for these drivers sgl allocation occurs in the hot path.
Thanks,
Bart.
Bart Van Assche (8):
lib: Introduce sgl_alloc() and sgl_free()
crypto: scompress - use sgl_alloc() and sgl_free()
nvmet/fc: Use sgl_alloc() and sgl_free()
nvmet/rdma: Use sgl_alloc() and sgl_free()
target: Use sgl_alloc_order() and sgl_free()
scsi/ipr: Use sgl_alloc_order() and sgl_free_order()
scsi/pmcraid: Remove an unused structure member
scsi/pmcraid: Use sgl_alloc_order() and sgl_free_order()
crypto/Kconfig | 1 +
crypto/scompress.c | 52 +----------------
drivers/nvme/target/Kconfig | 2 +
drivers/nvme/target/fc.c | 37 +-----------
drivers/nvme/target/rdma.c | 64 ++-------------------
drivers/scsi/Kconfig | 2 +
drivers/scsi/ipr.c | 50 +++-------------
drivers/scsi/ipr.h | 2 +-
drivers/scsi/pmcraid.c | 44 ++------------
drivers/scsi/pmcraid.h | 3 +-
drivers/target/Kconfig | 1 +
drivers/target/target_core_transport.c | 47 ++-------------
include/linux/sgl_alloc.h | 16 ++++++
lib/Kconfig | 4 ++
lib/Makefile | 1 +
lib/sgl_alloc.c | 102 +++++++++++++++++++++++++++++++++
16 files changed, 161 insertions(+), 267 deletions(-)
create mode 100644 include/linux/sgl_alloc.h
create mode 100644 lib/sgl_alloc.c
--
2.14.2
next reply other threads:[~2017-10-12 22:45 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-12 22:45 Bart Van Assche [this message]
2017-10-12 22:45 ` [PATCH 1/8] lib: Introduce sgl_alloc() and sgl_free() Bart Van Assche
2017-10-12 22:52 ` Jens Axboe
2017-10-12 23:00 ` Bart Van Assche
2017-10-13 8:44 ` Johannes Thumshirn
2017-10-13 14:20 ` Jens Axboe
2017-10-13 17:43 ` Randy Dunlap
2017-10-13 17:56 ` Bart Van Assche
2017-10-12 22:45 ` [PATCH 2/8] crypto: scompress - use " Bart Van Assche
2017-10-12 22:45 ` [PATCH 3/8] nvmet/fc: Use " Bart Van Assche
2017-10-13 8:41 ` Johannes Thumshirn
2017-10-12 22:45 ` [PATCH 4/8] nvmet/rdma: " Bart Van Assche
2017-10-13 8:42 ` Johannes Thumshirn
2017-10-12 22:45 ` [PATCH 5/8] target: Use sgl_alloc_order() " Bart Van Assche
2017-10-12 22:45 ` [PATCH 6/8] scsi/ipr: Use sgl_alloc_order() and sgl_free_order() Bart Van Assche
2017-10-13 8:45 ` Johannes Thumshirn
2017-10-12 22:45 ` [PATCH 7/8] scsi/pmcraid: Remove an unused structure member Bart Van Assche
2017-10-13 8:45 ` Johannes Thumshirn
2017-10-12 22:45 ` [PATCH 8/8] scsi/pmcraid: Use sgl_alloc_order() and sgl_free_order() Bart Van Assche
2017-10-13 8:47 ` Johannes Thumshirn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171012224550.25440-1-bart.vanassche@wdc.com \
--to=bart.vanassche@wdc.com \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox