Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S945725AbXHMNGi (ORCPT ); Mon, 13 Aug 2007 09:06:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S968900AbXHMIS4 (ORCPT ); Mon, 13 Aug 2007 04:18:56 -0400 Received: from relay.2ka.mipt.ru ([194.85.82.65]:42800 "EHLO 2ka.mipt.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968867AbXHMISx (ORCPT ); Mon, 13 Aug 2007 04:18:53 -0400 Date: Mon, 13 Aug 2007 12:18:26 +0400 From: Evgeniy Polyakov To: Daniel Phillips Cc: Jens Axboe , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Peter Zijlstra Subject: Re: [1/1] Block device throttling [Re: Distributed storage.] Message-ID: <20070813081826.GB30089@2ka.mipt.ru> References: <20070731171347.GA14267@2ka.mipt.ru> <20070808095448.GA3440@2ka.mipt.ru> <20070808101708.GA23815@2ka.mipt.ru> <200708121616.10670.phillips@phunq.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200708121616.10670.phillips@phunq.net> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1022 Lines: 23 Hi Daniel. On Sun, Aug 12, 2007 at 04:16:10PM -0700, Daniel Phillips (phillips@phunq.net) wrote: > Your patch is close to the truth, but it needs to throttle at the top > (virtual) end of each block device stack instead of the bottom > (physical) end. It does head in the direction of eliminating your own > deadlock risk indeed, however there are block devices it does not > cover. I decided to limit physical devices just because any limit on top of virtual one is not correct. When system recharges bio from virtual device to physical, and the latter is full, virtual device will not accept any new blocks for that physical device, but can accept for another ones. That was created specially to allow fair use for network and physical storages. -- Evgeniy Polyakov - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/