Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933802AbcCOWko (ORCPT ); Tue, 15 Mar 2016 18:40:44 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:40660 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933089AbcCOWkl (ORCPT ); Tue, 15 Mar 2016 18:40:41 -0400 X-AuditID: cbfee61b-f793c6d00000236c-5a-56e88f67d4e1 From: Ming Lin To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Christoph Hellwig Subject: [PATCH RFC 0/2] mempool based chained scatterlist alloc/free api api Date: Tue, 15 Mar 2016 15:39:27 -0700 Message-id: <1458081569-30953-1-git-send-email-mlin@kernel.org> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNJMWRmVeSWpSXmKPExsVy+t9jQd30/hdhBls/KFmsXH2UyeLyrjls Ft3Xd7A5MHvsvtnA5vF5k1wAUxSXTUpqTmZZapG+XQJXxtZLR5kLGlgrlqx9ydLA2MTSxcjJ ISFgIrHx2ntGCFtM4sK99WxdjFwcQgKzGCW2v7zOAuH8YpTY++szG0gVm4CCxMF1G5i6GDk4 RARsJJq+MYGEmQWUJBasvcsOYgsL+ErcX9TBDGKzCKhKdLTMBqvhFbCXuLRpLzvEMjmJk8cm s05g5F7AyLCKUSK1ILmgOCk91ygvtVyvODG3uDQvXS85P3cTI9jLz6R3MB7e5X6IUYCDUYmH NyHhRZgQa2JZcWXuIUYJDmYlEd70TqAQb0piZVVqUX58UWlOavEhRmkOFiVx3sf/14UJCaQn lqRmp6YWpBbBZJk4OKUaGEvKmtd2LDi+7+u2MrXitafmOHxcXRjk8vXH59DS7JXal5rX9plr M+3Mbb1ya3bAQ0Yv5YevT/IenjDRnXOPSW3EPqYvS0yXNnXWZstL1/LnHE1O6j1iV6axf6ZS G9+a8MOCDHObm56GREZKqrA+nzb9ogDLVebzb05esDf47tB+6sXJ9JZjQkosxRmJhlrMRcWJ AD7XaP7uAQAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 617 Lines: 21 From: Ming Lin Hi list, This moves the mempool based chained scatterlist alloc/free code from scsi_lib.c to lib/scatterlist.c. So other drivers(for example, the under development NVMe over fabric drivers) can also use it. Ming Lin (2): scatterlist: add mempool based chained SG alloc/free api scsi: use the new chained SG api drivers/scsi/scsi_lib.c | 129 ++---------------------------------- include/linux/scatterlist.h | 12 ++++ lib/scatterlist.c | 156 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 175 insertions(+), 122 deletions(-) -- 1.9.1