blkdev_issue_flush() not detecting and passing EOPNOTSUPP back

Bug #215110 reported by Wido den Hollander
14
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Tim Gardner
Hardy
Fix Released
Medium
Tim Gardner
Intrepid
Fix Released
Medium
Tim Gardner

Bug Description

When running drbd on top of a software-raid device (mdadm) you get this message:

drbd0: local disk flush failed with status -5

After doing some research i found that this is caused by the 2.6.24 kernel: http://www.nabble.com/local-disk-flush-failed-with-status--5-td16127326.html

A patch/fix is also available at that URL.

I am running kernel 2.6.24-15-server with Ubuntu Hardy 8.04 beta (32-Bits).

A solution for this bug would be to get the newer code from the upstream from kernel.org or apply the patch as stated above.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"
ARCH=i686

root@storage1:~# uname -r
2.6.24-15-server
root@storage1:~#

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Wido,

I'm just including the upstream git commit id and description you've referenced. Unfortunately the kernel is currently frozen for Hardy so this probably won't make it in before Hardy final is released. However, this fix will automatically be available in the Intrepid Ibex 8.10 release and this could possibly be considered for the Hardy 8.04.1 point release. I'll reassign to the kernel team for their consideration. Thanks.

commit cc66b4512cae8df4ed1635483210aabf7690ec27
Author: Jens Axboe <email address hidden>
Date: Tue Mar 4 11:47:46 2008 +0100

    block: fix blkdev_issue_flush() not detecting and passing EOPNOTSUPP back

    This is important to eg dm, that tries to decide whether to stop using
    barriers or not.

    Tested as working by Anders Henke <anders.henke@1und1.de>

    Signed-off-by: Jens Axboe <email address hidden>

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Ante Karamatić (ivoks) wrote :

I can confirm this. It *should* be fixed in Hardy too.

Changed in linux:
milestone: none → ubuntu-8.04.1
Revision history for this message
Chuck Short (zulcss) wrote :

Ante,

If possible can you provide a test case?

Thanks
chuck

Tim Gardner (timg-tpi)
Changed in linux:
assignee: ubuntu-kernel-team → timg-tpi
status: Triaged → In Progress
Revision history for this message
Ante Karamatić (ivoks) wrote : Re: [Bug 215110] Re: blkdev_issue_flush() not detecting and passing EOPNOTSUPP back

On Fri, 02 May 2008 19:57:45 -0000
Chuck Short <email address hidden> wrote:

> If possible can you provide a test case?

Yes. On Monday I'll boot up patched kernel and provide a patch after
it, if it works well.

Revision history for this message
Ante Karamatić (ivoks) wrote :

OK, I managed to test it today. I can confirm that supplied patch solves this issue.

Revision history for this message
Tim Gardner (timg-tpi) wrote :

SRU Justification:

Impact: Software RAID device cannot flush file system

Patch Description: fix blkdev_issue_flush() not detecting and passing EOPNOTSUPP back

Patch: http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-hardy.git;a=commit;h=457e5aff59660cd4d73bc8efc74a68ede8e1f8aa

TEST CASE: See Bug Description

Revision history for this message
Tim Gardner (timg-tpi) wrote :
Changed in linux:
status: In Progress → Fix Committed
Changed in linux:
assignee: nobody → timg-tpi
importance: Undecided → Medium
milestone: none → ubuntu-8.04.1
status: New → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into -proposed, please test and give feedback here

Steve Langasek (vorlon)
Changed in linux:
milestone: ubuntu-8.04.1 → none
Revision history for this message
Ante Karamatić (ivoks) wrote :

Works for me.

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in linux:
status: Fix Committed → Fix Released
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

This is "Fix Released" for Intrepid.

Changed in linux:
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.