Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4414549yba; Wed, 17 Apr 2019 10:59:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzysh9TCOD3aSu1YZTQLmt3KK3vXDLY+BBLAf02Xki12PkhlmTHBrcj+aJnrEsiaPX5vTEG X-Received: by 2002:a63:c34c:: with SMTP id e12mr85247001pgd.279.1555523949577; Wed, 17 Apr 2019 10:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555523949; cv=none; d=google.com; s=arc-20160816; b=HNyYvGk+sa6DX8DUVGgXMrN/WORK0Z/Ax2askREyXTbQzjBtbi8Ohas83wTbPW9bW6 1Yyo5RMKbudtjGkAr4yvB8IFKdEaWWMLjY5VJRScqMouHpU+fhuQ6pNmgiYzU3nNGRCy 1sHM5pTu6LQhHAIQsHgEcbs+mZ/ZHjgSHAdRKHldwsRN1dHlWFvZTC54ujWPUH7iKyks zEetkN/DMaKSouwodAVa2qxj4Y4GomDf7SKRnLzegjvptJb8uNNog0eimJL+5NxZ0qwD w07Ryz7kVZfrwub9W1Tfx8EiZLdiNZCL+Gh/IupMLxA+dACwrMc175QTCTCSm5NlPeFC yhfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=R55o9kUXAJBh2tF+7lJ4JvdI2/7fbKVS3keHkBQuoNQ=; b=vGoyHaIBA4Bb8KuoaFZoxB9N79NjJkKTo3loGJu/n03H3JhyM9r71sU7DfrHR922Sr zWHEFqpNur5vQv1FpQswSzctMd2wmRbyW40IunITpa7UCyRYnat/P3/BdFTgs/bKgiCl PajCbsiFzpW0Sg/T+sih/gmrSaOP4gxirDoecabpKqvvLVBsk+l0RKCp0rR52BhPlAIg FkRNqB1Y3gmvJvAMg6v6kAoQhzrEuVbS0k5PhGVUdIwVWUw3c1udkwYYetCs2HqSqH52 xwMYDdbb1+5sOAcm4T+dHpzP1YGtmMrKulFQUXzu+IFGgW0b6UzRKvfcIe20j5abzPVt SsfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=t92AtvlR; 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 r17si1535430pgv.128.2019.04.17.10.58.54; Wed, 17 Apr 2019 10:59:09 -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; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=t92AtvlR; 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 S1733135AbfDQR5y (ORCPT + 99 others); Wed, 17 Apr 2019 13:57:54 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:40293 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733114AbfDQR5y (ORCPT ); Wed, 17 Apr 2019 13:57:54 -0400 Received: by mail-io1-f68.google.com with SMTP id d201so21337352iof.7 for ; Wed, 17 Apr 2019 10:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=R55o9kUXAJBh2tF+7lJ4JvdI2/7fbKVS3keHkBQuoNQ=; b=t92AtvlR/3rv6myOl2qEMMrFqmL5j0URxSzPtqJ0hsuP5M2S1ZLU/myTKYV7zN6XRD xl+SkL88CQctt26c/njZ9YlZ+w3p7jDh7xvxhSjj1mg+CGRnezVZcQFgX80j5Yrq24U9 qA9x83s5IJF/fAIfDW+7XOHyvihqjZgyzYoKbJBb90BzW4Sgm6xrOV4Jz0dC626BbJ96 hxU5+5EBmK2xI/y7MzhKSNqHQa/0psZSH5OkICMYwN4x4kuFrggbl1NzMjO7ohbmtBWk E/2jU9aT1HwkQwRzrFXI+Vhj1FvTfT04H0Qkmxs5HQjU7tN133c/95tvJtjHERHb4YAH Wlbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=R55o9kUXAJBh2tF+7lJ4JvdI2/7fbKVS3keHkBQuoNQ=; b=DH6bQyuzCDfAm04JBiJ/gS0UeaWhpSFhRN717FQqSOV9OST83KnxJBGbLkz3eRqAYg PhF1roqHL5SF+XDu0sW86JehdYf4dBUyO3sdc63WJ1kCFtEH7LWs4h9SU8ISjrJ3K4Md LVSaDQLNNE8fCNH9vgeMjmWTjRaavP9c1ioRI5sfHodRFJCl7i/Qk9lxpFPraODXlZRC ip9MB6+nwvOtNEQ4dtfpwvt2+Uunwu76Of1ySMEHhOtpX0YWDfZZSACohRj2uc1ntKSM rlphovvThDAsyYeaV47+FscZpAORoxPmZ0v7FftqBb9ZN0ZEts45NzimKbPqgoGSCOJV vNGg== X-Gm-Message-State: APjAAAXADwsbbrjmVeGH7mJ3YQ0NX5pHGsCh0C1tI+nuqzFaHNCV9CGS 1AtoJgZRsOMaTk9eAfex9B7BxA== X-Received: by 2002:a6b:7417:: with SMTP id s23mr2709245iog.2.1555523873316; Wed, 17 Apr 2019 10:57:53 -0700 (PDT) Received: from [192.168.1.158] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id e11sm19033013iob.48.2019.04.17.10.57.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Apr 2019 10:57:51 -0700 (PDT) Subject: Re: [PATCH v4 4/7] block: introduce write-hint to stream-id conversion To: 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 Cc: prakash.v@samsung.com References: <1555523406-2380-1-git-send-email-joshi.k@samsung.com> <1555523406-2380-5-git-send-email-joshi.k@samsung.com> From: Jens Axboe Message-ID: <6850a3ad-805f-4232-1bc7-f3249e1fba96@kernel.dk> Date: Wed, 17 Apr 2019 11:57:50 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1555523406-2380-5-git-send-email-joshi.k@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/17/19 11:50 AM, Kanchan Joshi wrote: > This patch moves write-hint-to-stream-id conversion in block-layer. > Earlier this was done by driver (nvme). Current conversion is of the > form "streamid = write-hint - 1", for both user and kernel streams. > Conversion takes stream limit (maintained in request queue) into > account. Write-hints beyond the exposed limit turn to 0. > A new field 'streamid' has been added in request. While 'write-hint' > field continues to exist. It keeps original value passed from upper > layer, and used during merging checks. Why not just use the bio write hint? We already disallow merging of dissimilar write hints, so req->bio->bi_write_hint is known to be identical with the rest of the bio's in that chain. -- Jens Axboe