Re: SMP Race in brelse

2001-02-02 Thread Tigran Aivazian
brelse() could just contain a single atomic_dec() and that is all. Regards, Tigran PS. Having thought about it -- it was neither sct, nor Alan, nor even Andrea -- it was Linus who explained it :) On Fri, 2 Feb 2001, Daniel Phillips wrote: > There is a rare SMP race in brelse: > >

SMP Race in brelse

2001-02-02 Thread Daniel Phillips
There is a rare SMP race in brelse: 1138 void __brelse(struct buffer_head * buf) 1139 { 1140 if (atomic_read(>b_count)) { 1141 atomic_dec(>b_count); 1142 return; 1143 } 1144 printk("VFS: brelse: Trying to free free buffe

SMP Race in brelse

2001-02-02 Thread Daniel Phillips
There is a rare SMP race in brelse: 1138 void __brelse(struct buffer_head * buf) 1139 { 1140 if (atomic_read(buf-b_count)) { 1141 atomic_dec(buf-b_count); 1142 return; 1143 } 1144 printk("VFS: brelse: Trying to free free buffer\n&qu