[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATCH [2.4.0test10]: Kiobuf#04, buffer wakeup fix



Hi,

Minor fix for kiobufs: add buffer_wait wakeups when we release
buffer_heads.

--Stephen
diff -ru linux-2.4.0-test10.kio.03/fs/buffer.c linux-2.4.0-test10.kio.04/fs/buffer.c
--- linux-2.4.0-test10.kio.03/fs/buffer.c	Thu Nov  2 12:08:54 2000
+++ linux-2.4.0-test10.kio.04/fs/buffer.c	Thu Nov  2 14:13:08 2000
@@ -1923,6 +1923,7 @@
 	}
 	
 	spin_unlock(&unused_list_lock);
+	wake_up(&buffer_wait);
 
 	if (!iosize)
 		return -EIO;
@@ -2068,6 +2069,7 @@
 		__put_unused_buffer_head(bh[i]);
 	}
 	spin_unlock(&unused_list_lock);
+	wake_up(&buffer_wait);
 	goto finished;
 }