Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756287AbcDGO4g (ORCPT ); Thu, 7 Apr 2016 10:56:36 -0400 Received: from mail-by2on0088.outbound.protection.outlook.com ([207.46.100.88]:19104 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751089AbcDGO4d (ORCPT ); Thu, 7 Apr 2016 10:56:33 -0400 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; X-AuditID: ac160c69-996e898000000be7-1a-570674ef4b02 Subject: Re: [PATCH RFC 1/2] scatterlist: add mempool based chained SG alloc/free api To: Ming Lin , , References: <1458081569-30953-1-git-send-email-mlin@kernel.org> <1458081569-30953-2-git-send-email-mlin@kernel.org> CC: Christoph Hellwig From: Bart Van Assche Message-ID: <57067514.7020700@sandisk.com> Date: Thu, 7 Apr 2016 07:56:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <1458081569-30953-2-git-send-email-mlin@kernel.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCLMWRmVeSWpSXmKPExsWyRoxnke77ErZwgyfXtC1Wrj7KZHF51xw2 i+7rO9gszm87yerA4rFpVSebx+6bDWwenzfJBTBHcdmkpOZklqUW6dslcGXMePaJpWAdY8WC E5eYGxi7GbsYOTkkBEwk1hw4yQJiCwnMZZLYfra4i5ELyN7OKDHr13F2mKKrJ5+wQRUxShw4 5QViCwuES1zZOp+5i5GDQ0QgTqLhRQRESanEq+8nmUFsZgEliSWb/7CC2GwCRhLf3s8E28Ur oCWx4cVrJpBWFgEViR/tNSBhUYEIidYHT9khSgQlTs58AlbOKe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ADbr+wG8QEAAA== X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:63.163.107.21;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(24454002)(189002)(199003)(4326007)(1096002)(87936001)(92566002)(1220700001)(558084003)(586003)(81166005)(164054004)(2270400002)(2201001)(106466001)(189998001)(2950100001)(87266999)(5008740100001)(65816999)(50986999)(122286003)(6806005)(2906002)(117636001)(11100500001)(54356999)(76176999)(36756003)(47776003)(83506001)(50466002)(23746002)(4001350100001)(77096005)(230700001)(5001770100001)(86362001)(64126003)(217873001)(62816006);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR0201MB1922;H:milsmgep15.sandisk.com;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD020;1:qx+nmXa//XQw7cBoxP1X4vtxTC5wyvhVwhv1ar6OBybhisrCEJw1N9M2FZ+f73xr05BAvv4LINlNHlPAQXGV64Ns/98e8AxtRxrTKkOG/YezfIcNKj0njkcWvPNA/oSIsyH+cYqmTpk+oIK2NaLH4sk+OPtWLlKzPJDR/vcU4wJv9zYadN90n408Bn03Nty661roh0GWUPGh3Y2N3R5fVYsX+yaXsQ8QVTivunzjaZpVC3kKHAJ8xIh6nUv9Wt/pDpPMAWRrcDzsAHIH+mJ+JitrPE/NoDibk25ytS2J692i/pYfnBLvBFdqkPLTF4COO6r6oPJAZ2R0RLo+Tm+F9XviF6vgwR1hWNDimuLFhdyxFRZfpf0d6SaIJBAKwkfK2q4u8qF/HmLdeR4yEGsQvkEGgGG1R15BPgWFE3bNWMcTElqQ8eXyChL8kum8clNbaq+J8rehHIxhPPbOVSiUUftA/VyLziFqPWFaiAcLUD4= X-MS-Office365-Filtering-Correlation-Id: 58ebdae5-0d4c-4d6e-566b-08d35ef4cd4c X-Microsoft-Exchange-Diagnostics: 1;BLUPR0201MB1922;2:2Bjre8usvi+E0Z0N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ls963oVS29Ln13pEwW/L+g== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(13016025)(5005006)(8121501046)(13018025)(10201501046)(3002001);SRVR:BLUPR0201MB1922;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0201MB1922; X-Forefront-PRVS: 0905A6B2C7 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;BLUPR0201MB1922;23:O+yXrguQHcOYQWkDIgzSPu2kxyMCwwXBIYa?= =?Windows-1252?Q?bHlsuXV9FA0S4GNfBF8PE9uB5JmG8yc4TD1nw+pO7nwQdh2NAdP7CQXo?= =?Windows-1252?Q?K2v36LrP1lQnezGCEaZ2G5DxA0pXQskw5xWrjwIIrgyJtyJ/vfNvO694?= =?Windows-1252?Q?1SCN/Od2NtY59NqW7Kw+7ehKqDyVggtXGw5uwgB6bli8aA4og+iWk1ND?= =?Windows-1252?Q?FXxE048VDXo7q7WObCLsP+GOSHjUA1/JwKwLQPwkTf7pHTHWzChTNZwY?= =?Windows-1252?Q?yPmn7ZiT0CXn87fM7HkH0onRhPmsJVxWig786pamm6OOfAtjNTgZbKHG?= =?Windows-1252?Q?FzIOUhY8KP1qfwnojJZ94WfQq6B4Spr9ONKQZbkmZNxbKhiIGQeDBBCi?= =?Windows-1252?Q?m+KJeresmA6F2ph80g0BoLbJYJSlEVP6UHOMZxBSuvDwCXbrvzXULhOy?= =?Windows-1252?Q?yjyn9k33O4CjQ2VUf3Lu3NlEPx5HMoSAmX1SqrIgJyVrASgCUt9gMPxk?= =?Windows-1252?Q?ZtpNl75i7thHdlvKzhMcNRKj+uKJ1cHhPYHgGRuOI3Gc3r2Dgp81jUU9?= =?Windows-1252?Q?amkDWDNb9qbwN9AeWKsuDmXBzJoX1TRyXnpQf7lcro61he4c7w3wh/0r?= =?Windows-1252?Q?qTlEWle6xoEHf/ZGokXaNMJLdjXDNrjFhUsmkVVJMZBdlCLi+9wp4BiD?= =?Windows-1252?Q?8V1JbJmPtYcOeTNU/EeJt9slqsq27cTNobpVMzEQwbAxSL01t8xM3IoP?= =?Windows-1252?Q?zQYffRAA0YLMRHBL1XH0uVC7nkmg0aNwlx5pC8KNZRnLmqAj2wQcJzgZ?= =?Windows-1252?Q?gydglMlXYxpI+0wclgrr+4RlPCkg1u2c3Nw9HTlewnzAb0lce9jo62zr?= =?Windows-1252?Q?0PiIqHYKeUX7stPg9GOFhgsQP64fIGf0Zs2urhEz7t9PV23JMlvZAh/S?= =?Windows-1252?Q?4tYXgPNPGwWy1ywUrM/4qCwRadNpTXQc0g2FB+XRMS+/j5+0xFAtmWL1?= =?Windows-1252?Q?DBdAlVruRGkqVpdfHhg4IPNG55HfiVUE5ITYaNaF/EhV+XUzwyeOVOVH?= =?Windows-1252?Q?Y5vg5Uljlh55ljTZSzd/QaKPj7kCqfCOpyaQADE+UOsTPXkiB6Cui4Z+?= =?Windows-1252?Q?vjxh4ujFph1E2LMaKyUxknG/YGrcC3uirUdL5wxLGBa7QMwR3Yv5Zh3Z?= =?Windows-1252?Q?uZIyZ0nz0DD38py87bMzAYQvGynGG1WiCMoC0jWT3qZZpL1JJpzxQ?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR0201MB1922;5:HCiuJQ7JgquZEwSpGpVEJyK8FJEOdUfzWjIRd5PlNoeF6MrH1J1ENWuRX11qFohDpHVbxBxfoah7q4Q6nnDq/6VVIV5Ocnyj5Cp3VqAbLEe13EgfSvsAHulf85R8jSBqYHEs2rLrC4ibhJgSqq91sA==;24:aYATC80O5zgizDWzROFgb4XJnmJIBNj0mT/1Ds+2kdSqYOkmh2KBQE1ViZmwrOyrOm1+k2xNbWaLDmtVtvLrnLgPPOXSdE6BqWPVfFQmgOA=;20:MMLmOIRXm9E60rnb3m6QpYm7ixlNahmuJCzHXtSp7jo3UfFS4xISMHv+W/Ijx52QfORZVdEBifv3R81xbPVn1IKu2EpK7Iki0oHfANveQrdJ76l8rN9mHnhZqZ4qWYMW+1w8+ZR2lnQeTcMDG3KiRbpfl9z59rlN2Cf2mFqEzUE/ieyEYWS4BEztFCWHHNxbc/gJvwimUDkQXXPuunDQPb6RO5YdcZQShlKbxoWhPm+ozLYeIv2+AIaY22OgjJBI SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2016 14:56:29.4055 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d;Ip=[63.163.107.21];Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0201MB1922 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 164 Lines: 8 On 03/15/16 15:39, Ming Lin wrote: > +static void sg_mempoll_free(struct scatterlist *sgl, unsigned int nents) Please change mempoll into mempool. Thanks, Bart.