Package: iscsitarget-source
Version: 0.4.15-5
Followup-For: Bug #449237

The issue described in this bug have been adressed in upstream
developpment version[1] revision 138 (on 2007-09-21). But
no new release yet.

For those who may need it, I've backported the patch r138.
(on the page http://wiki.debian.org/iSCSI/iscsitarget i explain
how to compile the module, with this patch).

[1] http://svn.berlios.de/wsvn/iscsitarget/trunk/?rev=138&sc=1

Franklin

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.23-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages iscsitarget-source depends on:
ii  bzip2                         1.0.3-7    high-quality block-sorting file co
ii  debhelper                     5.0.61     helper programs for debian/rules
ii  module-assistant              0.10.11    tool to make module package creati

iscsitarget-source recommends no packages.

-- no debconf information
diff -u kernel/iscsi.c kernel-138/iscsi.c
--- kernel/iscsi.c      2007-12-19 23:25:44.000000000 +0100
+++ kernel-138/iscsi.c  2007-12-19 23:26:39.000000000 +0100
@@ -1757,8 +1757,7 @@
        if ((err = event_init()) < 0)
                goto err;
 
-       iscsi_cmnd_cache = kmem_cache_create("iscsi_cmnd", sizeof(struct 
iscsi_cmnd),
-                                            0, 0, NULL, NULL);
+       iscsi_cmnd_cache = KMEM_CACHE(iscsi_cmnd, 0);
        if (!iscsi_cmnd_cache)
                goto err;
 
Common subdirectories: kernel/.svn and kernel-138/.svn
diff -u kernel/tio.c kernel-138/tio.c
--- kernel/tio.c        2007-12-19 23:25:44.000000000 +0100
+++ kernel-138/tio.c    2007-12-19 23:26:39.000000000 +0100
@@ -110,8 +110,7 @@
 
 int tio_init(void)
 {
-       tio_cache = kmem_cache_create("tio", sizeof(struct tio),
-                                     0, 0, NULL, NULL);
+       tio_cache = KMEM_CACHE(tio, 0);
        return  tio_cache ? 0 : -ENOMEM;
 }
 

Reply via email to