Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2008398imm; Tue, 10 Jul 2018 11:30:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeIBOwo36rkql/wvT6e+wqhdv3HJzPWnhj05SS52elxT/0Fvr1gvjAEqCfk6uBv2XSwpVfO X-Received: by 2002:a63:4b1f:: with SMTP id y31-v6mr24158485pga.14.1531247434711; Tue, 10 Jul 2018 11:30:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531247434; cv=none; d=google.com; s=arc-20160816; b=qBT1aKTFcQcdPJe+aPm3asj5NziwJLGf9nzvnUF4eUQwj8lXMOtIFOoFoLFTaq4Lmd bTjKbSJ/lNPzeWI6hjUmVBneCE2yi5V9tZ015uqydEw5cqwPW4lNFKAoVpS9Gn9Q0c1o nAp8qJKzYOTneGzlNe+LRDUiKY5vmU3Z/r4Tk1h+IJDxvkq3Vz6/fSdIxY6jlsacwPfV ojD6ZWxxkITLqkVJltRPpiUJGqOP5OgJAi7a3S71KnfxAmqGcVign0F9GHfXVE7MBFO1 2mLYjJ0XqymjS5k7PZ44WEifGQLW3PPd1/T36l+s1s+HHa71L9c92tQ7tP/P0Tz8UwNx DkiQ== 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=YCJcwzgHg6b2PtZeCSrpNDW98r4gxMxNyeAT1AE0FRo=; b=CIexVURyyhxeFdRE9rpFSf7r1mM7WoDo3bm1I3MKdBCj3BMqDiZhb+naMfM5A3S69I yr2LFeCQgGUV8I1xO9qWXVVdaIB+8SPCdcFbb/lcW2Sn7I1LhLYF7NNvO8pYYMvtTlxW 5kEbd4XNaOFQVRIb8o9AX/szQOIxV8xLOc3Hv1jg67enztdb2AJ7U+gcc3eCqhTHWzeZ XGaOrPy7oM3QWnjhkNoFp9y9ycud7qjd2dj/xh0e1uiw+XflLiKXmMOxS5q8VkXL40IP 28JaMr5/N5gOcI5kR+xEVUr47iZ/h9vCtOn+Nxb+NXY6vDGL1itD6bwYx1Bb8cKhpxb6 u05A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=b5Htvjnt; 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 1-v6si16981798plj.411.2018.07.10.11.30.19; Tue, 10 Jul 2018 11:30:34 -0700 (PDT) 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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=b5Htvjnt; 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 S2387563AbeGJS2v (ORCPT + 99 others); Tue, 10 Jul 2018 14:28:51 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:46761 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732920AbeGJS2u (ORCPT ); Tue, 10 Jul 2018 14:28:50 -0400 Received: by mail-io0-f196.google.com with SMTP id i18-v6so5533367ioj.13 for ; Tue, 10 Jul 2018 11:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.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=YCJcwzgHg6b2PtZeCSrpNDW98r4gxMxNyeAT1AE0FRo=; b=b5HtvjntOac2U2JwmL4Om7jNGr+TXjRRF+PqQD5alWq0SCjFaYcOXHdhaXOPKLQsUk Z8NbCsRrrgD2ssHv0oQRxQIkZdzv+EtSI0AESZCZUEZp2irlT/LS5QOR3MWmQptzb4io CtYRpMXIoTQadPqCV7fDMH9uSGS4hKKtYBq2fuwkfSBjLygrSmJRSGJ6+LYa+cI3t+3Q Mae+e3IQn507OApBDeOjk3FcEvuM2hliugCU3cLfqzuwQsqU1WLDLDjMNU+U4jUGCVv9 53PiU9sULT8CiOm46Z/4QwGAs45mjvdvxRIBj+QVUhKxKy4Fo2MSZKU3w/RBUjw1WdoM 5TVw== 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=YCJcwzgHg6b2PtZeCSrpNDW98r4gxMxNyeAT1AE0FRo=; b=D+TmjGaoia3ivNqYDzzxvob7WHZyYBVz1EkCjpRLL1u3SEiVQQvRvhlON4rT02gvS+ Leuzs1Wc6fvXIn1x6A02LyiDddY92SZnAepL7uTD4mObi3KIx+npVpzD+28AC7LRlsbm AUYapsjarAFV3ESdqo1SLGf6XfxaM5jE0txvqZw9DP5TmDigEwaIpe25IkKnGpGug09A +/qu+X8NlnDy1ue4CkW/Qsdz33+FLUArJCxaM0RJKRNouQyDr8wP8LvnrLabiq9GgyBZ /QkkSywjqX5hCuShOYTEjK784nWQp170A9N0L1KEMM/afPuHPY/K6/v/K+Nm0bEMOGM5 M8Qw== X-Gm-Message-State: AOUpUlEK6zo9AJ8qt/njuQO1qpuXpRUGqdYVtsRLVS4NCo2vxGwV7oBb GEe1voLWFgFbYOzkJdOkZbPyRpQaALQ= X-Received: by 2002:a5e:dc41:: with SMTP id s1-v6mr6074000iop.200.1531247318820; Tue, 10 Jul 2018 11:28:38 -0700 (PDT) Received: from [192.168.1.212] (107.191.0.158.static.utbb.net. [107.191.0.158]) by smtp.gmail.com with ESMTPSA id n124-v6sm5040itg.7.2018.07.10.11.28.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jul 2018 11:28:25 -0700 (PDT) Subject: Re: [PATCH] block: iolatency: avoid 64-bit division To: Arnd Bergmann Cc: Tejun Heo , Josef Bacik , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180710152146.2371336-1-arnd@arndb.de> From: Jens Axboe Message-ID: Date: Tue, 10 Jul 2018 12:28:09 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180710152146.2371336-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8 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 7/10/18 9:21 AM, Arnd Bergmann wrote: > On 32-bit architectures, dividing a 64-bit number needs to use the > do_div() function or something like it to avoid a link failure: > > block/blk-iolatency.o: In function `iolatency_prfill_limit': > blk-iolatency.c:(.text+0x8cc): undefined reference to `__aeabi_uldivmod' > > Using div_u64() gives us the best output and avoids the need for an > explicit cast. Applied, thanks Arnd. -- Jens Axboe