Skip to contentSkip to conversation

2.4.0-test11 ext2 fs corruption

DISCUSSION [email protected] 2 participants 2 messages Nov 29, 2000

lore
Share & tools
lore
#0 lore raw

block/ll_rw_blk.c Wed Nov 29 01:33:00 2000 line 689

Quoted 12 lines
block/ll_rw_blk.c Wed Nov 29 01:33:00 2000 renamed from block/ll_rw_blk.c~ Wed Nov 29 01:30:22 2000 +1 -1
@@ -684,7 +684,7 @@
       int max_segments = MAX_SEGMENTS;
       struct request * req = NULL, *freereq = NULL;
       int rw_ahead, max_sectors, el_ret;
-       struct list_head *head = &q->queue_head;
+       struct list_head *head;
       int latency;
       elevator_t *elevator = &q->elevator;

head = &q->queue_head is a simple offset calculation in the request queue structure. Moving this into the spinlock won't change anything, since q->queue_head isn't a pointer that can change.

Independent of that I can second the observation that test11 can corrupt ext2 in memory. I think that this is related to the memory management problems I see but I can't prove it yet.

blue skies,
Martin

Linux/390 Design & Development, IBM Deutschland Entwicklung GmbH Schönaicherstr. 220, D-71032 Böblingen, Telefon: 49 - (0)7031 - 16-2247
E-Mail: [email protected]

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#1 lore raw
Quoted 16 lines · On Wed, 29 Nov 2000 [email protected] wrote:

block/ll_rw_blk.c Wed Nov 29 01:33:00 2000 line 689

Quoted 12 lines
block/ll_rw_blk.c Wed Nov 29 01:33:00 2000 renamed from block/ll_rw_blk.c~ Wed Nov 29 01:30:22 2000 +1 -1
@@ -684,7 +684,7 @@
       int max_segments = MAX_SEGMENTS;
       struct request * req = NULL, *freereq = NULL;
       int rw_ahead, max_sectors, el_ret;
-       struct list_head *head = &q->queue_head;
+       struct list_head *head;
       int latency;
       elevator_t *elevator = &q->elevator;

head = &q->queue_head is a simple offset calculation in the request queue structure. Moving this into the spinlock won't change anything, since q->queue_head isn't a pointer that can change.

That's fine, but head is _re_assigned later. Grep for 'head =' and 'again' in __make_request().

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/