Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1997802imm; Tue, 10 Jul 2018 11:18:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdtJ7Z3qfXB2bIaoDFXZVawgZ+dqLgIuTV4B/bEsA0W+4cBTI4FB/1g6xoDv+7tsAZm7Dhw X-Received: by 2002:a63:5a13:: with SMTP id o19-v6mr23492521pgb.195.1531246711532; Tue, 10 Jul 2018 11:18:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531246711; cv=none; d=google.com; s=arc-20160816; b=kLQLWVztps4zbHNND6aSmBHTxXRI3OC45aTvbk5AU61aZY2KXO6Abs6HzU5Yi1p9cJ Ddn6USs3Qi7F2glKvsR922bmwtf1Nh83AyOHJg5FXOPvDoR3okPDLJwLRXZmOYsPtvNn Td1PALE8Ev68SB7AEL8NpgbBPsCO2rNn9oaRPZeOSO4BwYz76VGAuMZlSOYd6CgVLiv+ TtTtQ8W5uIq1aaHApBrBBWycee9QlgCzDwCqt4S2RswhI3aAoSn6YXr81ZH0jWo77rst aF/0my7QjwJrSZOt0du1stQV4FMku1a2H/AiNCGP1TOSmMuV/o+NERf2YkYSdgOD+I1b M67A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=61UZxSa2EivR0u/rxvbDpJZNfM6mkGlXxoOX0ilSGUM=; b=nMUKXu5cvuHq6fU0F/MUTR/sbznmmH8EDxJ9AzZLMfCvaDQJty29b3Fdq7P6F7XyIJ 1w2SB/a7hsvqwmdEm+yCKTlRjj/sML/p3DunqoMXJpsS2PZo027AOZRqOx0HWd6TZrH3 nCW0KwTSAbriUUhh/ZYZ5flFeK2iUAAYWH5FWtMNmgeCX4HFsE9Wu3qpd4b3OEi2BScR Cwm6piycqeCeFC7NGx2H55lbEQs6H0PXn+g6fIQtvtrUdmycfchGt78C04ueNfHp87oH uHIiXl3l+zC1uItY0UkZTxJY9mxLgH0tIke3f2/bxTJnq3bI3BqbdH0JToXipVYPHX7b G4pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=y9pXwBQ+; 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 c17-v6si16285026pge.273.2018.07.10.11.18.00; Tue, 10 Jul 2018 11:18:31 -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=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=y9pXwBQ+; 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 S1732278AbeGJSQP (ORCPT + 99 others); Tue, 10 Jul 2018 14:16:15 -0400 Received: from mail-qt0-f181.google.com ([209.85.216.181]:44633 "EHLO mail-qt0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732205AbeGJSQP (ORCPT ); Tue, 10 Jul 2018 14:16:15 -0400 Received: by mail-qt0-f181.google.com with SMTP id b15-v6so19151419qtp.11 for ; Tue, 10 Jul 2018 11:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=61UZxSa2EivR0u/rxvbDpJZNfM6mkGlXxoOX0ilSGUM=; b=y9pXwBQ+KXYv899QrU1QPjA4wZ8Ov6zAGqYgg6x4v4lCa7o5SBaInJy/LQVbviieyO BkhFIoxBdGuQad0lH3dytoLkgYebNYKcvXef5e1bbnDdoH5NLWd8IsGvkzsWT0wCekoZ eW7DH4mJmEoMb2aEvvwO4N5iSS0DITEDi38j57gEQxtNO8KPMUZGT/4W4WgZ5mXta56G hLrpwSOmt8FuRODL63Vmej5hhTToC6KT7ZBEC1W97kdHODRs/yX+FUG2Jv2q0TkGo6Wo /n0tb1nEvPtWChosEIPQv2LgXoA7wbGWfHV6fS2hsaghuaPyZeUCLYMM8IRxWD6491h8 LdPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=61UZxSa2EivR0u/rxvbDpJZNfM6mkGlXxoOX0ilSGUM=; b=sjizc9C1CZhrahXS7Z8+VPwPkt9yqqt6/t6mmGnWiKZ8GDbdbiPTrdtNkyFfBD5Qre 7A5TcUrhmmv2IizY+lC9NMI/vFuhNxaHjkP046E3UuftYU/qe2ULtibs7wPPDnSpcj01 77YrGtbtQkPO1TSXmpBG9H6kOH73UBMiCJcYYClBLdsIQEHDITSmzY7gpTOY8zyMqZUF 1wHUR2jH/lS+s6zwaMp+PXI1dsAViaWvOAxzDfxNKaI9ujABUwTlswij4EZKs048vRkd qGzDVhBMZVTkzz2TImBI/MefsuOYWvN/SpchBgesnsiFPtrl6knWzkZwm8CPLB1NvWad b7vQ== X-Gm-Message-State: AOUpUlFnuWE26Yq3WoLILOkOk7xcZYt1dqMNKmdd09MA1cthzSVFX/fx JOXjDFhMiuTuze9LEUFcisSYTg== X-Received: by 2002:a0c:c290:: with SMTP id b16-v6mr8736233qvi.182.1531246568449; Tue, 10 Jul 2018 11:16:08 -0700 (PDT) Received: from localhost ([107.15.81.208]) by smtp.gmail.com with ESMTPSA id r67-v6sm6235198qkd.10.2018.07.10.11.16.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Jul 2018 11:16:07 -0700 (PDT) Date: Tue, 10 Jul 2018 14:16:07 -0400 From: Josef Bacik To: Arnd Bergmann Cc: Jens Axboe , Tejun Heo , Josef Bacik , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] block: iolatency: avoid 64-bit division Message-ID: <20180710181605.yczet6lc2b57zj2a@destiny> References: <20180710152146.2371336-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180710152146.2371336-1-arnd@arndb.de> User-Agent: NeoMutt/20170714 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 10, 2018 at 05:21:34PM +0200, 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. > > Fixes: d70675121546 ("block: introduce blk-iolatency io controller") > Signed-off-by: Arnd Bergmann Oops sorry Arnd, Reviewed-by: Josef Bacik