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


Groups > linux.kernel > #1557552

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

From Christoph Hellwig <hch@lst.de>
Newsgroups linux.kernel
Subject Re: [Regression] fstrim hangs on Hyper-V: caused by "block: improve handling of the magic discard payload"
Date 2017-01-12 17:00 +0100
Message-ID <sYPXc-5KY-13@gated-at.bofh.it> (permalink)
References <sYLgS-2XE-5@gated-at.bofh.it> <sYNVn-4Au-5@gated-at.bofh.it> <sYPDR-5Es-47@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Can you check if this debug printk triggers for the discard commands?

---
diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index 888e16e..7ab7d08 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -1031,6 +1031,10 @@ static void storvsc_command_completion(struct storvsc_cmd_request *cmd_request,
 			data_transfer_length = 0;
 	}
 
+	if (cmd_request->payload->range.len != data_transfer_length)
+		printk_ratelimited("request len: %u, transfer len: %u\n",
+			cmd_request->payload->range.len,
+			data_transfer_length);
 	scsi_set_resid(scmnd,
 		cmd_request->payload->range.len - data_transfer_length);
 

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


Thread

[Regression] fstrim hangs on Hyper-V: caused by "block: improve  handling of the magic discard payload" Dexuan Cui <decui@microsoft.com> - 2017-01-12 12:00 +0100
  Re: [Regression] fstrim hangs on Hyper-V: caused by "block:         improve handling of the magic discard payload" Christoph Hellwig <hch@lst.de> - 2017-01-12 14:50 +0100
    RE: [Regression] fstrim hangs on Hyper-V: caused by "block:    improve  handling of the magic discard payload" Dexuan Cui <decui@microsoft.com> - 2017-01-12 16:40 +0100
      Re: [Regression] fstrim hangs on Hyper-V: caused by "block:         improve handling of the magic discard payload" Christoph Hellwig <hch@lst.de> - 2017-01-12 17:00 +0100
        RE: [Regression] fstrim hangs on Hyper-V: caused by "block:    improve  handling of the magic discard payload" Dexuan Cui <decui@microsoft.com> - 2017-01-12 17:40 +0100

csiph-web