linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: PATCH [2.4.0test10]: Kiobuf#04, buffer wakeup fix
@ 2000-11-02 16:04 Stephen C. Tweedie
  0 siblings, 0 replies; only message in thread
From: Stephen C. Tweedie @ 2000-11-02 16:04 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Rik van Riel, Ingo Molnar, Stephen Tweedie, linux-mm

[-- Attachment #1: Type: text/plain, Size: 93 bytes --]

Hi,

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

--Stephen

[-- Attachment #2: 04-wakeup.diff --]
[-- Type: text/plain, Size: 483 bytes --]

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;
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-11-02 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-02 16:04 PATCH [2.4.0test10]: Kiobuf#04, buffer wakeup fix Stephen C. Tweedie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox