Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1566392

Re: [PATCHSET v4] blk-mq-scheduling framework

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Paolo Valente <paolo.valente@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCHSET v4] blk-mq-scheduling framework
Date Wed, 25 Jan 2017 09:50:01 +0100
Message-ID <t3rrb-7Us-13@gated-at.bofh.it> (permalink)
References <sPaTf-2bJ-5@gated-at.bofh.it> <sQ4sq-77B-7@gated-at.bofh.it> <sQaRc-303-31@gated-at.bofh.it> <sQaRc-303-29@gated-at.bofh.it> <sRdtD-2JG-11@gated-at.bofh.it> <sRdtD-2JG-9@gated-at.bofh.it> <t0zEC-63y-13@gated-at.bofh.it> <t0zEC-63y-11@gated-at.bofh.it> <t117Q-6i2-19@gated-at.bofh.it> <t2QhZ-Jd-45@gated-at.bofh.it> <t2QhZ-Jd-43@gated-at.bofh.it> <t3rrb-7Us-15@gated-at.bofh.it>
X-Original-To Jens Axboe <axboe@fb.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=qSdMm0vPXsHGQUPtFMeToSKSBMo6CfU9pgSGk2UUDB0=; b=ba64JUs6cki0sLT+3BkfHw1B630yUQuoaNtAs6iHSTPAfhi8Uj6ykeNnH54myXATGB bemTwDYGusHsvx4abLZ2JFqQdGz//TvLPy4vsfLUQ5WbXYDJOWqoGom/xKmwFj78govT 9v2BjGduyqnhyQkAsXkGMke7c/jIyVKt5D+9k=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=qSdMm0vPXsHGQUPtFMeToSKSBMo6CfU9pgSGk2UUDB0=; b=tpxKeklz9BS+aRjxSIp8V1pIRFpodAgzyPcc7wdCKfBPqdTdYDNu6zqd/ul0nW3iAe Sa56aV+WcIsxo96Jem6pS1VNNwN9fA4Ra86d8q/VFyE9OsGgvIJdeC2sIALKCcqk3PuJ +0GIF9JwIbrm5ePYedVJiwTZYLsMlv/P+1nlOtSYRMaf3ZCJ3ETOOOJMnfDScNsYsOI6 FjBJqR8VNNbOArjFyBPr6y9c5DbfPA2P+3LfFuZdcTcso4sGrKnVICfnQ/IZ8EuVdkFr IJuaUbEUw29WJ0eL3jhJCBywceG8xOErmVjCJI4Pdcg6yk/b8jwzC5qxC7g6ErFlqezi j8Bg==
X-Gm-Message-State AIkVDXILhXIdPqSbX+8ZOOHDCpIZnC4DtDJms+8dN/JWHZiySPa9za3osPeA+ukOK3QCckCT
X-Received by 10.28.207.70 with SMTP id f67mr20563893wmg.72.1485333996637; Wed, 25 Jan 2017 00:46:36 -0800 (PST)
Content-Type text/plain; charset=windows-1252
MIME-Version 1.0 (Mac OS X Mail 9.3 \(3124\))
Content-Transfer-Encoding quoted-printable
X-Mailer Apple Mail (2.3124)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 47
Organization linux.* mail to news gateway
X-Original-Cc Jens Axboe <axboe@kernel.dk>, linux-block@vger.kernel.org, Linux-Kernal <linux-kernel@vger.kernel.org>, Omar Sandoval <osandov@fb.com>, Linus Walleij <linus.walleij@linaro.org>, Ulf Hansson <ulf.hansson@linaro.org>, Mark Brown <broonie@kernel.org>
X-Original-Date Wed, 25 Jan 2017 09:46:29 +0100
X-Original-Message-ID <15FC1715-D77C-4E31-811B-60898C0C6DAA@linaro.org>
X-Original-References <1481933536-12844-1-git-send-email-axboe@fb.com> <7A8A5078-E9B8-4EBF-BAB1-9E8EEBF3A043@linaro.org> <dd9501e9-5fc2-66d3-5c62-f8b727a6b6c9@fb.com> <CF1D593B-8BD0-4B59-9193-9D1D4E8BE3E4@linaro.org> <f5303f81-811a-8d0a-b271-d091d8839778@fb.com> <37570439-97C8-4009-B143-C5E78789A137@linaro.org> <b258d716-5c9a-c999-cec4-6bea38a8b975@fb.com> <C5DAF0C3-0509-4297-B12F-C436923A8311@linaro.org> <2028A64C-40E5-403D-B5E9-05863E94B4C5@linaro.org> <59b134de-5d2d-5f16-3118-bdc16bc6e36b@fb.com> <22EDFDE7-71FF-4265-8DDE-B141D3FD26B2@linaro.org> <d75c44df-8eac-b324-ac11-9bb7b6190603@fb.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1566392

Show key headers only | View raw


> Il giorno 23 gen 2017, alle ore 18:42, Jens Axboe <axboe@fb.com> ha scritto:
> 
> On 01/23/2017 10:04 AM, Paolo Valente wrote:
>> 
>>> Il giorno 18 gen 2017, alle ore 17:21, Jens Axboe <axboe@fb.com> ha scritto:
>>> 
>>> On 01/18/2017 08:14 AM, Paolo Valente wrote:
>>>> according to the function blk_mq_sched_put_request, the
>>>> mq.completed_request hook seems to always be invoked (if set) for a
>>>> request for which the mq.put_rq_priv is invoked (if set).
>>> 
>>> Correct, any request that came out of blk_mq_sched_get_request()
>>> will always have completed called on it, regardless of whether it
>>> had IO started on it or not.
>>> 
>> 
>> It seems that some request, after being dispatched, happens to have no
>> mq.put_rq_priv invoked on it now or then.  Is it expected?  If it is,
>> could you point me to the path through which the end of the life of
>> such a request is handled?
> 
> I'm guessing that's a flush request. I added RQF_QUEUED to check for
> that, if RQF_QUEUED is set, you know it has come from your get_request
> handler.
> 

Exactly, the completion-without-put_rq_priv pattern seems to occur
only for requests coming from the flusher, precisely because they have
the flag RQF_ELVPRIV unset.  Just to understand: why is this flag
unset for these requests, if they do have private elevator (bfq)
data attached?  What am I misunderstanding?

Just to be certain: this should be the only case where the
completed_request hook is invoked while the put_rq_priv is not, right?

Thanks,
Paolo

> I'm assuming that is it, let me know.
> 
> -- 
> Jens Axboe
> 

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCHSET v4] blk-mq-scheduling framework Paolo Valente <paolo.valente@linaro.org> - 2017-01-17 12:00 +0100
  Re: [PATCHSET v4] blk-mq-scheduling framework Paolo Valente <paolo.valente@linaro.org> - 2017-01-18 17:20 +0100
    Re: [PATCHSET v4] blk-mq-scheduling framework Paolo Valente <paolo.valente@linaro.org> - 2017-01-23 18:10 +0100
      Re: [PATCHSET v4] blk-mq-scheduling framework Paolo Valente <paolo.valente@linaro.org> - 2017-01-25 09:50 +0100
        Re: [PATCHSET v4] blk-mq-scheduling framework Paolo Valente <paolo.valente@linaro.org> - 2017-01-26 15:30 +0100

csiph-web