Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Vincent Fu <vincentfu@gmail.com>, fio@vger.kernel.org
Cc: Vincent Fu <Vincent.Fu@wdc.com>
Subject: Re: [PATCH] engines/sg: improve error handling
Date: Mon, 3 Sep 2018 09:01:25 -0600	[thread overview]
Message-ID: <a5312604-0875-a51a-7101-d377894d8d5a@kernel.dk> (raw)
In-Reply-To: <1535402411-8396-1-git-send-email-vincentfu@gmail.com>

On 8/27/18 2:40 PM, Vincent Fu wrote:
> From: Vincent Fu <Vincent.Fu@wdc.com>
> 
> The Linux sg driver accepts only 16 SCSI commands in flight
> at a time per file descriptor. fio does not exit gracefully
> when it attempts to queue up 17 or more trim commands via
> the sg ioengine. This patch improves error handling in the
> sg ioengine commit function to achieve a graceful exit if
> fio attempts to queue up too many trim commands. The key to
> this is calling clear_io_u on each io_u in the 17th trim
> command. With this patch fio no longer loops forever
> waiting for the IOs in the (not succesffully submitted)
> 17th trim command to complete.

Applied, thanks Vincent.

-- 
Jens Axboe



      parent reply	other threads:[~2018-09-03 15:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-27 20:40 [PATCH] engines/sg: improve error handling Vincent Fu
2018-08-27 22:41 ` Sitsofe Wheeler
2018-08-28  0:35   ` Vincent Fu
2018-09-03 15:01 ` Jens Axboe [this message]

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=a5312604-0875-a51a-7101-d377894d8d5a@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=Vincent.Fu@wdc.com \
    --cc=fio@vger.kernel.org \
    --cc=vincentfu@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox