[Hyper-V] storvsc: Set the SRB flags correctly when no data transfer is needed

Bug #1454758 reported by Joshua R. Poulson
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Critical
Joseph Salisbury
Precise
Fix Released
Critical
Joseph Salisbury
Trusty
Fix Released
Critical
Joseph Salisbury
Utopic
Fix Released
Critical
Joseph Salisbury
Vivid
Fix Released
Critical
Joseph Salisbury
Wily
Fix Released
Critical
Joseph Salisbury

Bug Description

The following critical bugfix has been accepted into the upstream kernel. It is needed for 15.10, 15.02, 14.10, 14.04 and 14.04 HWE (and, by extension, 12.04 and 12.04 HWE). We have seen IHV drivers in the field throw errors and time out due to receiving SRB flags set when no data transfer is expected.

storvsc: Set the SRB flags correctly when no data transfer is needed
Set the SRB flags correctly when there is no data transfer. Without this
change some IHV drivers will fail valid commands such as TEST_UNIT_READY.

Commit http://git.kernel.org/cgit/linux/kernel/git/jejb/scsi.git/commit/?id=dc45708ca9988656d706940df5fd102672c5de92

Revision history for this message
Joshua R. Poulson (jrp) wrote :

No log provided or required, upstream commit.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1454758

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Joshua R. Poulson (jrp)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Critical
tags: added: kernel-da-key kernel-hyper-v
Changed in linux (Ubuntu Vivid):
status: New → Triaged
Changed in linux (Ubuntu Wily):
status: Confirmed → Triaged
Changed in linux (Ubuntu Utopic):
status: New → Triaged
Changed in linux (Ubuntu Trusty):
status: New → Triaged
Changed in linux (Ubuntu Precise):
status: New → Triaged
Changed in linux (Ubuntu Vivid):
importance: Undecided → Critical
Changed in linux (Ubuntu Utopic):
importance: Undecided → Critical
Changed in linux (Ubuntu Trusty):
importance: Undecided → Critical
Changed in linux (Ubuntu Precise):
importance: Undecided → Critical
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

The commit requested in the description of this bug is now in the Ubuntu-3.19.0-22.22 Vivid kernel via the following:

commit 5db9ff87ac04da152ac8996025158f010adbfa8f
Author: K. Y. Srinivasan <email address hidden>
Date: Fri Jun 5 14:00:31 2015 -0400

    storvsc: Set the SRB flags correctly when no data transfer is needed

    BugLink: http://bugs.launchpad.net/bugs/1439780

    Set the SRB flags correctly when there is no data transfer. Without this
    change some IHV drivers will fail valid commands such as TEST_UNIT_READY.

This commit was included per bug 1439780 and is confirmed to have resolved that bug. The 3.19.0-22 kernel is now in the proposed repository.

Would it be possible for you to test this latest kernel and post back if it resolves this bug?
See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed.

Thank you in advance!

Changed in linux (Ubuntu Wily):
assignee: nobody → Joseph Salisbury (jsalisbury)
Changed in linux (Ubuntu Vivid):
assignee: nobody → Joseph Salisbury (jsalisbury)
Changed in linux (Ubuntu Utopic):
assignee: nobody → Joseph Salisbury (jsalisbury)
Changed in linux (Ubuntu Trusty):
assignee: nobody → Joseph Salisbury (jsalisbury)
Changed in linux (Ubuntu Precise):
assignee: nobody → Joseph Salisbury (jsalisbury)
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Also, in bug 1445195 we were talking about reliability issues when that bug was focused on performance improvements. So we will use this bug to focus on the reliability issues, which may or may not be resolved with only commit 5db9ff87 "storvsc: Set the SRB flags correctly when no data transfer is needed"

I'm also looking into bug 1452074 . Comment 4 in that bug sounds like the reliability issues we are talking about in bug 1445195. Joshua, should we use bug 1452074 to focus on the reliability issues and use this bug to focus on getting the commit in the description in all the stable releases?

Revision history for this message
Joshua R. Poulson (jrp) wrote :

Yes, let's go forward with that plan, although the SRB flag fix should not cause any instability... there must be another underlying issue.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

As suggested in comment #13 of bug 1452074 , a new bug will be opened to focus on the issues seen with VSS Based Backups. This bug will be used to get the commit listed in the description into all stable releases.

Changed in linux (Ubuntu Wily):
status: Triaged → Fix Released
Changed in linux (Ubuntu Vivid):
status: Triaged → Fix Committed
Changed in linux (Ubuntu Utopic):
status: Triaged → In Progress
Changed in linux (Ubuntu Trusty):
status: Triaged → In Progress
Changed in linux (Ubuntu Precise):
status: Triaged → In Progress
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

The new bug is bug 1470250 . Let's now use that bug to focus on the VSS Backup issues.

Changed in linux (Ubuntu Vivid):
status: Fix Committed → Fix Released
Changed in linux (Ubuntu Trusty):
status: In Progress → Fix Released
Changed in linux (Ubuntu Utopic):
status: In Progress → Fix Released
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

The cherry-pick of commit dc45708c into Precise also required 8b612fa as a prereq. I built a test kernel with these two commits. The test kernel can be downloaded from:

http://kernel.ubuntu.com/~jsalisbury/lp1454758/

Can folks affected by this bug test this kernel? If it resolves this bug, I will SRU these commits to Precise.

Thanks in advance.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

The add to my last comment, other prerequisits were also required to get a cherry-pick of commit dc45708c. The following commits were needed:

610071c38, 37f7278b8, eafa7072e and 8b612fa23

Revision history for this message
Zsolt Dudás (v-zsduda) wrote :

Tested the above test kernel (3.2.0-90-generic) on Ubuntu 12.04.5 without any errors.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

@Joshua, would it be possible for you to test this bug as well. If these commits fix the bug as expected, I'll submit an SRU for Precuse.

Revision history for this message
Joshua R. Poulson (jrp) wrote :

@jsalisbury Joe, @v-zsduda is on my team. The update looks good.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Great, thanks for the update! I'll submit these patches for an SRU.

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

An SRU request for Precise has been submitted.

Brad Figg (brad-figg)
Changed in linux (Ubuntu Precise):
status: In Progress → Fix Committed
Revision history for this message
Luis Henriques (henrix) wrote :

This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-precise' to 'verification-done-precise'.

If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-precise
Revision history for this message
Chris Valean (cvalean) wrote :

Hi Luis,
I've tested this now on Precise with kernel 3.2.0-95-generic and it's working fine.
Please merge the changes.

tags: added: verification-done-precise
removed: verification-needed-precise
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 3.2.0-95.135

---------------
linux (3.2.0-95.135) precise; urgency=low

  [ Luis Henriques ]

  * Release Tracking Bug
    - LP: #1514808

  [ Upstream Kernel Changes ]

  * Drivers: hv: Support handling multiple VMBUS versions
    - LP: #1454758
  * Drivers: hv: Save and export negotiated vmbus version
    - LP: #1454758
  * Drivers: hv: Move vmbus version definitions to hyperv.h
    - LP: #1454758
  * storvsc: Update the storage protocol to win8 level
    - LP: #1454758
  * storvsc: Set the SRB flags correctly when no data transfer is needed
    - LP: #1454758

 -- Luis Henriques <email address hidden> Tue, 10 Nov 2015 12:06:14 +0000

Changed in linux (Ubuntu Precise):
status: Fix Committed → Fix Released
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.