Received: by 10.223.185.116 with SMTP id b49csp6545251wrg; Thu, 8 Mar 2018 09:08:35 -0800 (PST) X-Google-Smtp-Source: AG47ELsyxOGnQ/8l6Vm9yspSA0dx2Smyc54Oja3Uys7uGhYZ4jxSAHMKm0oGowMubh8XeVjxnime X-Received: by 10.99.157.142 with SMTP id i136mr22168163pgd.14.1520528915736; Thu, 08 Mar 2018 09:08:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520528915; cv=none; d=google.com; s=arc-20160816; b=V1lB2WaPC6y8oisPPTY9UE/7Yi8sYeJTNNgjSgJ/jvseosTGnn2VQ7mzHFq6pZB0Oc wKG0ytjm56KBX1DB2DurJDjvavkZRB76znLQ2Jbyjj6O/c3Iag1qRaDBLUCnLOe2mmB7 R6/14j7jBPiYmLwdKE5D6SedAJdVE1aJfUdFSk39Ll8oRwMowCZdQarDqfxMdUkhN4vC Fp0tRtz5CCD3LA8EtvYlmKd1fr8gPIYYRQP4LfiZM5P54Zb1uQ1ZFPfAmohABaDw6DLZ K3MnIc7EzPrkQqILU5K8RlQTwH2/N920zHJdBeNCEjAC3U7AdO/Ew7ox0o4zkoe4XhoJ 3vBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=XL8R1HUlG1sNXkAIaZV2VgDty5sb4gzgCpqwIiNhcmg=; b=hHZvj8JO47KNbixmw3+w4FWMxQph5T7ddCIeRe0IEMY1QtUUXFjT53b8At9M0qWR2x Ont5Ji9pHOZ+uFSKZYVYPMVVnPZWWFJ55hky1bc2BJm1cs2vodlB5qUgjCAtdAenTMim JXEOkDxgar8SnCJa5F4YjWfR9EBa5FZPmO03fFUxkhRneymPkjcAq8m5hB9Ta/RUGpPH R/ZCL2yeQbbyGkCbVClIMtDSBQVKAjjdbXmD4rZF3YiHEjL1JKpU9l8WPqsYj0n5E/pk h1kvY/SVq3AGYG246vIeRDvE94/RPAh2j6/yUhiply3FBbA/RS9HXA1QUuF3MQwrSnFu 31yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=ia2MoU+L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12-v6si7722126plo.91.2018.03.08.09.08.20; Thu, 08 Mar 2018 09:08:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=ia2MoU+L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754454AbeCHRGl (ORCPT + 99 others); Thu, 8 Mar 2018 12:06:41 -0500 Received: from mail-wr0-f179.google.com ([209.85.128.179]:44017 "EHLO mail-wr0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752135AbeCHRGj (ORCPT ); Thu, 8 Mar 2018 12:06:39 -0500 Received: by mail-wr0-f179.google.com with SMTP id a63so2794169wrc.10 for ; Thu, 08 Mar 2018 09:06:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XL8R1HUlG1sNXkAIaZV2VgDty5sb4gzgCpqwIiNhcmg=; b=ia2MoU+La/co0+lCJWnHxq9X6RI6K5G4qDE+6gkMJ0L0U7q3qXctnPchhWM8lOwc1Q 1UWW4k0G81OvqDXhX/X8hBd2lYoIJWDCDCH0FTp+IGVm2Qf9BUEpua8RSo1dY96b08/9 j1p0XBG1pgIdrITqiE6MAQQZ+E7Bm1hq8giVAZ6iWo/D9o8mYVQxGjMRUNuJJQVQHmMY IleCkMWwQ/fnc0qUnitPmnzxptqOx6D71UZ14l6MUIpjPjRTLTr+ngVBHlgHwZx0RZjA sBO+DIkHlHmbbUIUKp8cFIPv+IiFMbXKOUYDEQDaQvnzcxVQwqXIigztIhbhiIRSvLyr 7DWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XL8R1HUlG1sNXkAIaZV2VgDty5sb4gzgCpqwIiNhcmg=; b=PyCz7jSKBibaPNqDeKKEQKZey2gab12xV1pFAz++UHyssj95mv8munb1e+xoP0X+0S c8u7n7/hnyeed0u4iKY+Gnw+Iu7DSt9QDmJkccWQ93Fd1alt8hxiQjZPHwbE317pM3FD LhjOAE5YNcN5maa6q8CmIktDpbO2vNu9DmsTB1DTnGA8Wn0EhSBMELohkNEGbc+D1MWW PQ2ccXOqThv3VMN5MwA2+LpaYjJUqi9idRz+UZW40a3PzYoKTNNF8eotHKInSp+ZhFVc 3mFupjzUM8wl00iNcagdtMkAC8tzY1WwCY7H+TOefT0jnCYFkxRw1xtKGP9lJRU04V/H UtKw== X-Gm-Message-State: APf1xPDTZIH0ib1p8mwybgexInq4WTJFvQbH0NvbSFUW8E1BOexHPr9q VMXulHLURDZvzfxBWXYXQy+Y9SEL X-Received: by 10.223.177.194 with SMTP id r2mr24780517wra.89.1520528798153; Thu, 08 Mar 2018 09:06:38 -0800 (PST) Received: from [192.168.0.153] ([95.146.144.186]) by smtp.googlemail.com with ESMTPSA id d17sm2727675wrc.69.2018.03.08.09.06.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 09:06:37 -0800 (PST) Subject: Re: [PATCH 6/6] lib/scatterlist: Drop order argument from sgl_free_n_order To: Bart Van Assche , "James.Bottomley@HansenPartnership.com" , "linux-kernel@vger.kernel.org" Cc: "linux-scsi@vger.kernel.org" , "tvrtko.ursulin@intel.com" , "hare@suse.com" , "jthumshirn@suse.de" , "target-devel@vger.kernel.org" , "axboe@kernel.dk" , "nab@linux-iscsi.org" References: <20180307124712.14963-1-tvrtko.ursulin@linux.intel.com> <20180307124712.14963-7-tvrtko.ursulin@linux.intel.com> <1520447415.5558.12.camel@HansenPartnership.com> <1520524591.2809.0.camel@wdc.com> From: Tvrtko Ursulin Message-ID: Date: Thu, 8 Mar 2018 17:06:36 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1520524591.2809.0.camel@wdc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/03/18 15:56, Bart Van Assche wrote: > On Thu, 2018-03-08 at 07:59 +0000, Tvrtko Ursulin wrote: >> However there is a different bug in my patch relating to the last entry >> which can have shorter length from the rest. So get_order on the last >> entry is incorrect - I have to store the deduced order and carry it over. > > Will that work if there is only one entry in the list and if it is a short > entry? Yeah, needs more work. I especially don't like that case (as in any other with a final short chunk) wasting memory. So it would need more refactoring to make it possible. It did work in my internal tree where sgl_alloc_order was extended to become sgl_alloc_order_min_max, and as such uses a smaller order for smaller chunks. This patch can be dropped for now but the earlier ones are still valid I think. On those one I think we have some opens on how to proceed so if you could reply there, where applicable, that would be great. Regards, Tvrtko