From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752586AbbCXK3M (ORCPT ); Tue, 24 Mar 2015 06:29:12 -0400 Received: from verein.lst.de ([213.95.11.211]:42554 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752189AbbCXK3I (ORCPT ); Tue, 24 Mar 2015 06:29:08 -0400 Date: Tue, 24 Mar 2015 11:29:05 +0100 From: Christoph Hellwig To: Ming Lei Cc: Jens Axboe , linux-kernel@vger.kernel.org, Christoph Hellwig , Al Viro , Maxim Patlasov Subject: Re: [PATCH 1/3] block: loop: use kmap(page) instead of page_address(page) Message-ID: <20150324102905.GA7002@lst.de> References: <1427012095-4095-1-git-send-email-ming.lei@canonical.com> <1427012095-4095-2-git-send-email-ming.lei@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1427012095-4095-2-git-send-email-ming.lei@canonical.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 22, 2015 at 04:14:52PM +0800, Ming Lei wrote: > The raw page allocated in lo_send() can be a highmem page, > so kmap(page) should be used for read/write on the page. > > Also the patch removes kmap()/kunmap() in lo_send() because > it isn't needed at all. The description seems odd, what it seems to do is to shift the kmap from lo_send into do_lo_send_write. This does not seem very useful as it now means a kmap per segment instead of just a single one per I/O. What would make more sense is to just not allocate a highmem page.