From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Axboe Subject: Re: [11/36] Use page_cache_xxx in fs/buffer.c Date: Fri, 31 Aug 2007 08:56:14 +0200 Message-ID: <20070831065613.GH29452@kernel.dk> References: <20070828190551.415127746@sgi.com> <20070828190730.220393749@sgi.com> <20070830092038.GD22586@dnb.sw.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Dmitry Monakhov , torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Mel Gorman , William Lee Irwin III , David Chinner , Badari Pulavarty , Maxim Levitsky , Fengguang Wu , swin wang , totty.lu@gmail.com, "H. Peter Anvin" , joern@lazybastard.org, "Eric W. Biederman" To: Christoph Lameter Return-path: Received: from brick.kernel.dk ([87.55.233.238]:28919 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760921AbXHaG4Q (ORCPT ); Fri, 31 Aug 2007 02:56:16 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Aug 30 2007, Christoph Lameter wrote: > This may already be handled? > > submit_bh() calls submit_bio() which calls __generic_make_request() and > there we do: > > if (unlikely(bio_sectors(bio) > q->max_hw_sectors)) { > printk("bio too big device %s (%u > %u)\n", > bdevname(bio->bi_bdev, b), > bio_sectors(bio), > q->max_hw_sectors); > goto end_io; > } > > So if we try to push a too large buffer down with submit_bh() we get a > failure. Only partly, you may be violating a number of other restrictions (size is many things, not just length of the data). -- Jens Axboe