lkml.org 
[lkml]   [2002]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Problems using /proc/scsi/gdth/ with 2.4.20aa1
On Tue, Dec 10, 2002 at 07:49:00AM +0100, Oliver Jehle wrote:
> Running linux 2.4.20-aa1 and the gdth driver works ,but accessing
> /proc/scsi/gdth/0 for example with cat or the supplied icpcon utility
> don't work...
>
> these messages are in system log when accessing /proc/scsi/gdth/0 with
> cat for example (works with 2.4.18)
> ...
>
> Dec 10 06:37:47 arena1 kernel: Unable to handle kernel NULL pointer
> dereference at virtual address 00000000
> Dec 10 06:37:47 arena1 kernel: printing eip:
> Dec 10 06:37:47 arena1 kernel: c024c879
> Dec 10 06:37:47 arena1 kernel: *pde = 00000000
> Dec 10 06:37:47 arena1 kernel: Oops: 0002 2.4.20aa1 #2 SMP Mon Dec 9
> 16:55:18 CET 2002
> Dec 10 06:37:47 arena1 kernel: CPU: 0
> Dec 10 06:37:47 arena1 kernel: EIP:
> 0010:[scsi_release_commandblocks+17/92] Not tainted

/me chuckles

That looks *amazingly* familiar...a patch I wrote introduced that bug,
sorry. It's fix is attached (assuming that Andrea picked up the same
version of the 2.4.x iorl contention patch that we are using now, which
is what introduced this problem for us here).

--
Doug Ledford <dledford@redhat.com> 919-754-3700 x44233
Red Hat, Inc.
1801 Varsity Dr.
Raleigh, NC 27606

--- linux/drivers/scsi/scsi.c-stock Fri Oct 25 15:41:03 2002
+++ linux/drivers/scsi/scsi.c Fri Oct 25 15:47:04 2002
@@ -2672,10 +2672,10 @@
SDpnt->type = -1;
SDpnt->queue_depth = 1;

- scsi_build_commandblocks(SDpnt);
-
scsi_initialize_queue(SDpnt, SHpnt);

+ scsi_build_commandblocks(SDpnt);
+
SDpnt->online = TRUE;

/*
@@ -2705,13 +2705,12 @@
panic("Attempt to delete wrong device\n");
}

- blk_cleanup_queue(&SDpnt->request_queue);
-
/*
* We only have a single SCpnt attached to this device. Free
* it now.
*/
scsi_release_commandblocks(SDpnt);
+ blk_cleanup_queue(&SDpnt->request_queue);
kfree(SDpnt);
}
\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.032 / U:0.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site