Thread (1 message) 1 message, 1 author, 2017-01-13

Re: [Regression] fstrim hangs on Hyper-V: caused by "block: improve handling of the magic discard payload"

From: Christoph Hellwig <hch@lst.de>
Date: 2017-01-13 07:39:53

On Fri, Jan 13, 2017 at 06:16:02AM +0000, Dexuan Cui wrote:
IMO this means not only SCSI Unmap command is affected, but
some other SCSI commands can be affected too? 
And it looks the bare metal can be affected too?
This affects all drivers looking at the sdb.length field for the
total I/O length - many drivers don't need it but just the SGL, including
both that I tested d this change on - one being virtualized and one
bare metal.

It also only affects commands where the data transfer length is different
from the length of the written blocks, so only affects WRITE SAME and
UNMAP commands, used for discard or zeroing.

I'll submit a cleaned up version with a proper block layer helper today.
Thanks for reporting and debugging this issue!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help