All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.6.5-rc2-mm2 ipc hang fix
@ 2004-03-26  1:53 badari
  2004-03-26  5:57 ` Manfred Spraul
  0 siblings, 1 reply; 4+ messages in thread
From: badari @ 2004-03-26  1:53 UTC (permalink / raw)
  To: andrew, lkml, manfred

Hi Andrew,

I ran into ipc hang while trying to shutdown database. Problem seems
to be due to missing sem_unlock() in find_undo(). Here is the patch
to fix the problem.

Please apply.

Thanks,
Badari

--- linux/ipc/sem.c     2004-03-26 05:19:22.833959160 -0800
+++ linux.new/ipc/sem.c 2004-03-26 05:19:57.047757872 -0800
@@ -972,8 +972,10 @@ static struct sem_undo *find_undo(int se
        if(sma==NULL)
                goto out;
        un = ERR_PTR(-EIDRM);
-       if (sem_checkid(sma,semid))
+       if (sem_checkid(sma,semid)) {
+               sem_unlock(sma);
                goto out_unlock;
+       }
        nsems = sma->sem_nsems;
        sem_unlock(sma);




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-26 17:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-26  1:53 2.6.5-rc2-mm2 ipc hang fix badari
2004-03-26  5:57 ` Manfred Spraul
2004-03-26 17:16   ` Badari Pulavarty
2004-03-26 17:36   ` 2.6.5-rc2-mm2 ipc hang fix (final version) Badari Pulavarty

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.