From: Jens Axboe <axboe@kernel.dk>
To: Andrey Kuzmin <andrey.v.kuzmin@gmail.com>
Cc: "fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: PATCH: Don't lose pending completions on exit in time- or size-based job with asynchronous I/O engine
Date: Fri, 17 Jul 2015 09:11:16 -0600 [thread overview]
Message-ID: <55A91B14.3050706@kernel.dk> (raw)
In-Reply-To: <CANvN+e=-7zm1yYUPnUaUmoJJ6xALNKBP9kr0F2va8EqF7o2VmQ@mail.gmail.com>
On 07/17/2015 09:02 AM, Andrey Kuzmin wrote:
> On Fri, Jul 17, 2015 at 5:58 PM, Jens Axboe <axboe@kernel.dk> wrote:
>> On 07/17/2015 08:53 AM, Andrey Kuzmin wrote:
>>>
>>>
>>> On Jul 17, 2015 5:36 PM, "Jens Axboe" <axboe@kernel.dk
>>> <mailto:axboe@kernel.dk>> wrote:
>>> >
>>> > On 07/17/2015 08:30 AM, Andrey Kuzmin wrote:
>>> >>
>>> >> Probably worth adding to do_verify() as well.
>>> >
>>> >
>>> > Might be better to ensure that they are reaped when we break out of
>>> the loop instead?
>>> >
>>>
>>> That's exactly what happens with the patch, doesn't it?
>>
>>
>> It might be... It's not very clear why a !td->cur_depth should force us to
>> stay in the loop?
>
> Because to me breaking out of the loop on time- or size-based limit
> exceeded condition with a non-zero td->cur_depth means loosing
> completions.
That's what I thought. Hence my suggestion would be that we reap any
potentially inflight IO _outside_ of the loop, that would be a lot cleaner.
--
Jens Axboe
next prev parent reply other threads:[~2015-07-17 15:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-17 14:30 PATCH: Don't lose pending completions on exit in time- or size-based job with asynchronous I/O engine Andrey Kuzmin
2015-07-17 14:36 ` Jens Axboe
2015-07-17 14:53 ` Andrey Kuzmin
2015-07-17 14:58 ` Jens Axboe
2015-07-17 15:02 ` Andrey Kuzmin
2015-07-17 15:11 ` Jens Axboe [this message]
[not found] ` <CANvN+e=S1Yfy3ZCtPv+LQqDOAhxhw90PDU-1fYH66W2mrH4NOw@mail.gmail.com>
2015-07-19 12:08 ` Andrey Kuzmin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55A91B14.3050706@kernel.dk \
--to=axboe@kernel.dk \
--cc=andrey.v.kuzmin@gmail.com \
--cc=fio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.