From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aauQv-0004UJ-IR for mharc-grub-devel@gnu.org; Tue, 01 Mar 2016 19:14:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aauQr-0004Pd-Pc for grub-devel@gnu.org; Tue, 01 Mar 2016 19:14:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aauQm-0001Jk-H0 for grub-devel@gnu.org; Tue, 01 Mar 2016 19:14:25 -0500 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:35356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aauQm-0001JL-0U for grub-devel@gnu.org; Tue, 01 Mar 2016 19:14:20 -0500 Received: by mail-wm0-x22a.google.com with SMTP id l68so61762333wml.0 for ; Tue, 01 Mar 2016 16:14:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=vlebfBig6/DeZVQaeekRKU/uSRDXYrh2h75FDQV6bcI=; b=kbMRNTFF+EdNTtsJC/DDX/32khleOTie8B0OIFPUGIiem+qp5bRUoMP/nVUA7KKXF8 Pj7hCIfVIES1eRp8/iFMLGxPkxngQ60fXq1tGV+WQIlCap4DukNOhzypk0lxC3UqDZTJ PjbTPreHqkAEVA3iNGk/QH6gz66/oAIeDfuTo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=vlebfBig6/DeZVQaeekRKU/uSRDXYrh2h75FDQV6bcI=; b=jkZL9iZCyWMYcGrGOuWQ0nl1mYE77eZBsXwWQbLuFyqwF+6o4vp4f/nhyOgMPyFHYA p/+sULPi7R+Czg4R9PXgXPwiBV5QuifbCNObkTAjtCna6P4RRSRRT8Q9KyjnfwgKiYVm 1uyXb9jkDPa4Xkzh880TSj+mcKTpA6kpIWt5nmz+3idLgx2DzD+wtp/YufbIpgtqWvic 1T9ZZMGGjS1ldWhYZZL5KjVraYNbZMaz4ZdGLiuDvsXX3aGN4On4CX9cCUYIFLK4aI/+ 6vnJcCNr5aKYPGySQZEJACVT/5yRtBPcMDJQSqgzRsYtzwGopG+S+qw+dIqSYJ7d3Q3F Q7rQ== X-Gm-Message-State: AD7BkJK3M2N16/tbFGs1UCQBt0GQtSIBZfktQ2ZinBqg1kx67Slk0R/R6g6DdyoSx7WzSTd6 X-Received: by 10.28.92.13 with SMTP id q13mr1441075wmb.43.1456877659310; Tue, 01 Mar 2016 16:14:19 -0800 (PST) Received: from mohikan.mushroom.smurfnet.nu (cpc92308-cmbg19-2-0-cust814.5-4.cable.virginm.net. [82.24.251.47]) by smtp.gmail.com with ESMTPSA id ls5sm33035554wjb.33.2016.03.01.16.14.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Mar 2016 16:14:18 -0800 (PST) From: Leif Lindholm To: grub-devel@gnu.org Subject: [PATCH v2 0/3] some disk reworking reposted Date: Wed, 2 Mar 2016 00:14:09 +0000 Message-Id: <1456877652-19389-1-git-send-email-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.1.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22a X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2016 00:14:26 -0000 So, looking into this a bit more, thinking of how I could potentially manage to sneak this into 2.02, and so on, I decided to rebase Andrei's direct cache buffer patch onto the others. Changes since v1: - disk_malloc() function now used as default for all disks, rather than a runtime check for presence of disk-specific one - adding Andrei's direct cache buffer use patch (obviously happy for this one to be treated separately, but made sense to include the rebased version with this posting) Andrei Borzenkov (1): disk: read into cache directly Leif Lindholm (2): disk: Add support for device-specific malloc function efidisk: implement alignment-respecting malloc function grub-core/disk/efi/efidisk.c | 8 ++++ grub-core/kern/disk.c | 105 +++++++++++++++++++++++++++---------------- grub-core/lib/disk.c | 6 +-- include/grub/disk.h | 16 ++++++- 4 files changed, 92 insertions(+), 43 deletions(-) -- 2.1.4