Re: [PATCH] engines/sg: improve error handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/27/18 2:40 PM, Vincent Fu wrote:
> From: Vincent Fu <Vincent.Fu@xxxxxxx>
> 
> 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




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux