Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2163208yba; Wed, 3 Apr 2019 02:37:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqznJ4+YoF1TfBGL7kqrSSI/VKRUrXjshxwug4SdMyhyT8+tRFFcvZ7BDYPjuQJHNJP/vEh/ X-Received: by 2002:a17:902:bd41:: with SMTP id b1mr56448465plx.221.1554284225764; Wed, 03 Apr 2019 02:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554284225; cv=none; d=google.com; s=arc-20160816; b=VW/mjQmrUNeyMJQ0XaBcJbOJmO5Ub6N+YqnVYbusKgBSwtJW1Zo1JfwkSorWbs2LoI Uo0yk2Rbfzsw5Ge1bTqBiFiMG1W7Sqa80RGetVA8VzCA7QfrcHfk4OcjRaZXRyeX7t31 a7UR/K4pEBjgfGIUBT3MvevfC2N1h1SwEJf1YDWJeQBcTO5i6rQjb3XvaFR4Lb6+D4zA +ApeeEiNcmtUvsiH+qc6Os2DOxuC8fFLC1LUTDVbpj4adKz8TWhw7Z4707O+8vK+7PXe u5lMcu8KdkTQJhwKT08WHC6taUS31viIMQTviF0bmlvZVgnmDv+gb+h8cri/Fn7avefc DJVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=nJ8K2IRQZYx8iV4MFSWF0W7yMblIkhHh8NlI6DPJfcE=; b=crzJTtmOGwnMcLqVdvSBDxdTkvpyddlf24VB/STkTB0AKzjqwQP2wfTQLWRsGK2h3s z61pNsCL7WDl920yG8HjrxxG1qd6jR08bPl/0fjSa43pBel06DqMhaBydLsbnwOo+kPE bOi9lAA+lGIoL9C5N+N/SuBNFUb1aGKR0SrZXmYm4DeJWAC+OcFaJ9AtmChaEyuVuLDS Xfq5ADKQ5H0/x8Xbv6LZslIInT+DMy7LtVtF+2wKd7cgwI6Zw/QKrLRXrSCD32cizJ41 DivXOv+jdJQt0smmcXpqEcxXWnag8y/PThOPUpZoYbHWUCAXz8j5GwrqwOCA1wLowzsT /Yew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k12si12996616pls.436.2019.04.03.02.36.49; Wed, 03 Apr 2019 02:37:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726213AbfDCJgO (ORCPT + 99 others); Wed, 3 Apr 2019 05:36:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:34246 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725935AbfDCJgN (ORCPT ); Wed, 3 Apr 2019 05:36:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 266ACABF0; Wed, 3 Apr 2019 09:36:12 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 351CA1E3FFD; Wed, 3 Apr 2019 11:36:10 +0200 (CEST) Date: Wed, 3 Apr 2019 11:36:10 +0200 From: Jan Kara To: Dave Chinner Cc: Jan Kara , Kanchan Joshi , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, axboe@fb.com, prakash.v@samsung.com, anshul@samsung.com, joshiiitr@gmail.com Subject: Re: [PATCH v3 3/7] block: add write-hint to stream-id conversion Message-ID: <20190403093610.GE8836@quack2.suse.cz> References: <1553846032-4451-1-git-send-email-joshi.k@samsung.com> <1553846032-4451-4-git-send-email-joshi.k@samsung.com> <20190401050821.GQ23020@dastard> <20190402092044.GE12133@quack2.suse.cz> <20190402203508.GT26298@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190402203508.GT26298@dastard> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 03-04-19 07:35:08, Dave Chinner wrote: > On Tue, Apr 02, 2019 at 11:20:44AM +0200, Jan Kara wrote: > > On Mon 01-04-19 16:08:21, Dave Chinner wrote: > > > On Fri, Mar 29, 2019 at 01:23:48PM +0530, Kanchan Joshi wrote: > > > > + if(streamid > nr_streams) > > > > + streamid = 0; > > > > > > So, basically, we'll compress all the kernel hints down to "no hint" > > > if there are more user streams than the device supports? > > > > > > Surely we should be reserving a stream for the kernel hints separate > > > from the user and "none" streams when we have limited device streams > > > available... > > > > The question is what to do in a situation when the device has exactly as > > many hints as we currently offer to userspace. > > Then do what we do now for that case. For every other case, the > kernel should have reserved space and not get intermingled with > userspace hints. Yup, we are on the same page then. Honza -- Jan Kara SUSE Labs, CR