From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752757AbbCXLJ4 (ORCPT ); Tue, 24 Mar 2015 07:09:56 -0400 Received: from verein.lst.de ([213.95.11.211]:42758 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752147AbbCXLJy (ORCPT ); Tue, 24 Mar 2015 07:09:54 -0400 Date: Tue, 24 Mar 2015 12:09:51 +0100 From: Christoph Hellwig To: Ming Lei Cc: Christoph Hellwig , Jens Axboe , Linux Kernel Mailing List , Al Viro , Maxim Patlasov Subject: Re: [PATCH 1/3] block: loop: use kmap(page) instead of page_address(page) Message-ID: <20150324110951.GA7979@lst.de> References: <1427012095-4095-1-git-send-email-ming.lei@canonical.com> <1427012095-4095-2-git-send-email-ming.lei@canonical.com> <20150324102905.GA7002@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue, Mar 24, 2015 at 06:49:00PM +0800, Ming Lei wrote: > On 32bit system, this still may cause pressure on page allocation, since > requests are handled concurrently now after using workqueue. kmap slots are from a much smaller resource pool than non-highmem allocations, so if a page needs to stay kmaped from allocation time until freeing it it should just be allocated as a kernel mapped page.