Commit:     d5f1b01644b6fd5e9eb480a4762cd6b569cb1246
Parent:     5ddff43435394c1c2540fcdeed00cb54862c31bf
Author:     Mauro Carvalho Chehab <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 8 11:48:57 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 00:03:14 2007 -0300

    V4L/DVB (6291): Fix: avoid oops on some SMP machines
    This workaround fix a bug that happens on some SMP machines. On those 
    videobuf_iolock is called too soon, before file .mmap handler. This patch 
    the scheduler before iolocking, allowing it to properly call the pending 
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
 drivers/media/video/videobuf-core.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/media/video/videobuf-core.c 
index 8e4026e..aa402ab 100644
--- a/drivers/media/video/videobuf-core.c
+++ b/drivers/media/video/videobuf-core.c
@@ -94,6 +94,14 @@ int videobuf_iolock(struct videobuf_queue* q, struct 
videobuf_buffer *vb,
+       /* FIXME: This is required to avoid OOPS on some cases, since 
+          method should be called before _iolock.
+          On some cases, the mmap_mapper() is called only after scheduling.
+          However, this way is just too dirty! Better to wait for some event.
+        */
+       schedule_timeout(HZ);
        return CALL(q,iolock,q,vb,fbuf);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to