Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6373248ybi; Sun, 21 Jul 2019 16:21:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHDZziKYbX2oJNgB3bjE8tPlpq0jiMfVGIuSOujiBbyW5JMyNbJ+XZxSNZoNStGgDrGR6D X-Received: by 2002:a17:90b:f0e:: with SMTP id br14mr73511455pjb.117.1563751298068; Sun, 21 Jul 2019 16:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563751298; cv=none; d=google.com; s=arc-20160816; b=NwawBqsB/xDoK0+E4kC9S+kkNUTWdGgKpv+g+SAqOPOqA3WfK6aIqQxzdqOpiL3z/V AaczGQc2RYOiXmntG1Jo20Iimry7fb2DSrDGxFzwO95RGueoQ6GSKEPz7EgLBX3uq4Qv BFS3TOtzunh1e1VSYbhzKtL3pXX80vLLH+owjpxp/clM4Ku2UR7DHb6McqKE/KZhUgkf 1sJgeUVwlSdn7RMB1dVA1uueBC1NOi9JoCn2ppg+5iL5eErjXf6JmzmeYll7uEYoA2ur yvVZ+j5cxuoErk3XvoP4EDvas16D6YQHXnuHknStXE3T/p+YQv4oIJMi9YgDfyly8vUa WGEg== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:dkim-signature; bh=GesAgZPJsx7wEXvwHNDWCpvqeJ9zTv6apm5H/63L3c4=; b=ecnKCyJmHC+u+rK20yxHzqwHQ17sfCYxEeTaJrxhX/e6WyCJ0YWSD1br/v66vbdczk h/Qr5t205FbodwFH88y4oN6Fabd/2N7YND4u/J2CGR+eIQkvepi3/U5cv0Q3YYOWY5NY ncYJcodSnWKNj4eqeEkT3O9RIKKzGowsKezgI8tdikFgd6IW8Vh4hJaKxeez/iynDoER eAtdPs/qSE2IOmf8KdR2i5sl933vpo0znLFhPvYSup0tGCer4/p7wNQB8UmPkd1seG5o jZFLIIPT/RLGG74+LrdZXw6nGupTDJhLbAoGounIqzdjGKHwDzjagw0O4Lut7rntTTUp ZFvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=LXq+BCz0; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=LXq+BCz0; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w186si11178923pgd.176.2019.07.21.16.21.09; Sun, 21 Jul 2019 16:21:38 -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=fail header.i=@hansenpartnership.com header.s=20151216 header.b=LXq+BCz0; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=LXq+BCz0; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726390AbfGUXIj (ORCPT + 99 others); Sun, 21 Jul 2019 19:08:39 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:57228 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbfGUXIj (ORCPT ); Sun, 21 Jul 2019 19:08:39 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id B939E8EE105; Sun, 21 Jul 2019 16:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1563750517; bh=mpQW7FGrJB7rmR1nmV6m3V1GTNaPj3kOjzaz4eZp9Ik=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=LXq+BCz0OH1gGgj+Rhft0XdRqxEfX2FaeFnT1pHQ2bf7CxwcU4cr2eL8EXJiWNXLA kbNsNOw9XAedh+luDytBF6AuIrpu9WPPsADVpNAtGET5UCEVHyJIL5jvtGeM+GL7Nk eua2uxWau1zmvY9tZr5Va38lNqgpX3Ayk9RdcNbE= Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qOBa1RhLoC6V; Sun, 21 Jul 2019 16:08:37 -0700 (PDT) Received: from [192.168.12.43] (unknown [153.171.18.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id F368E8EE104; Sun, 21 Jul 2019 16:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1563750517; bh=mpQW7FGrJB7rmR1nmV6m3V1GTNaPj3kOjzaz4eZp9Ik=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=LXq+BCz0OH1gGgj+Rhft0XdRqxEfX2FaeFnT1pHQ2bf7CxwcU4cr2eL8EXJiWNXLA kbNsNOw9XAedh+luDytBF6AuIrpu9WPPsADVpNAtGET5UCEVHyJIL5jvtGeM+GL7Nk eua2uxWau1zmvY9tZr5Va38lNqgpX3Ayk9RdcNbE= Message-ID: <1563750513.2898.4.camel@HansenPartnership.com> Subject: Re: [PATCH] unaligned: delete 1-byte accessors From: James Bottomley To: Alexey Dobriyan , akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, axboe@kernel.dk, kvalo@codeaurora.org, john.johansen@canonical.com, linux-arch@vger.kernel.org Date: Mon, 22 Jul 2019 08:08:33 +0900 In-Reply-To: <20190721215253.GA18177@avx2> References: <20190721215253.GA18177@avx2> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-07-22 at 00:52 +0300, Alexey Dobriyan wrote: > Each and every 1-byte access is aligned! The design idea of this is for parsing descriptors. We simply chunk up the describing structure using get_unaligned for everything. The reason is because a lot of these structures come with reserved areas which we may make use of later. If we're using get_unaligned for everything we can simply change a u8 to a u16 in the structure absorbing the reserved padding. With your change now I'd have to chase down every byte access and replace it with get_unaligned instead of simply changing the structure. What's the significant advantage of this change that compensates for the problems the above causes? James