Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752817AbbEFO0n (ORCPT ); Wed, 6 May 2015 10:26:43 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:53435 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751116AbbEFO0j (ORCPT ); Wed, 6 May 2015 10:26:39 -0400 Date: Wed, 6 May 2015 16:26:24 +0200 From: Peter Zijlstra To: "Martin K. Petersen" Cc: Jens Axboe , Jeff Moyer , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, adilger@dilger.ca, david@fromorbit.com Subject: Re: [PATCH v2] Support for write stream IDs Message-ID: <20150506142624.GM17717@twins.programming.kicks-ass.net> References: <1430856181-19568-1-git-send-email-axboe@fb.com> <55493097.6040007@fb.com> <55493AC1.9090408@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1176 Lines: 24 On Tue, May 05, 2015 at 06:09:18PM -0400, Martin K. Petersen wrote: > >>>>> "Jens" == Jens Axboe writes: > > Jens> I'm not trying to make a shortcut. I deliberately do not want to > Jens> make ID generation/assignment part of the kernel. There's no > Jens> reason that can't exist outside of the kernel, in a libstreamid or > Jens> similar. > > That just perpetuates the broken model, though. Why wouldn't we want to > have stream ids readily available inside the kernel to tag journals, > filesystem metadata, data migration, who knows what? > The only sensible solution is for the kernel to manage the stream > IDs. And for them to be plentiful. The storage device is free to ignore > them, do LRU or whatever it pleases to manage them if it has an internal > limit on number of open streams, etc. I agree; one of the primary tasks of an operating system kernel is arbitrage and control of hardware resources. -- 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/