Messages in this thread Patch in this message | | | Date | Thu, 25 Mar 2004 17:53:35 -0800 | From | badari <> | Subject | 2.6.5-rc2-mm2 ipc hang fix |
| |
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);
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |