Package: nbd-client
Version: 1:2.8.7-4
Severity: important

NBD locks with the cfq scheduler in the stable kernel in Debian.  It's
the same problem as happened with RedHat:
https://bugzilla.redhat.com/show_bug.cgi?id=241540

A potential fix that would work for most users is to change the initscript so 
that it sets the scheduler to deadline or anticipatory.

It's a temporary fix, but it will work until we get the kernel patched.
I'm going to file a bug against the kernel as well.

My patch is:

--- nbd-client.old      2007-10-22 14:47:24.000000000 -0400
+++ nbd-client  2007-10-22 14:47:33.000000000 -0400
@@ -37,6 +37,7 @@
        i=0
        while [ ! -z ${NBD_DEVICE[$i]} ]
          do
+         echo deadline > /sys/block/${NBD_DEVICE[$i]/\/dev\//}/queue/scheduler
          $DAEMON ${NBD_HOST[$i]} ${NBD_PORT[$i]} ${NBD_DEVICE[$i]}
          echo "connected ${NBD_DEVICE[$i]}"
          i=`expr $i + 1`



-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-686
Locale: LANG=en_CA, LC_CTYPE=en_CA (charmap=ISO-8859-1)

Versions of packages nbd-client depends on:
ii  debconf [debconf-2.0]  1.5.11            Debian configuration management sy
ii  libc6                  2.3.6.ds1-13etch2 GNU C Library: Shared libraries

nbd-client recommends no packages.

-- debconf information excluded



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to