From 484f5a7ce35849730f5cf4668c2675e7579e972b Mon Sep 17 00:00:00 2001 From: markster Date: Sat, 1 May 2004 17:36:39 +0000 Subject: Don't hold big zap lock in open (bug #1207) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@379 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- zaptel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'zaptel.c') diff --git a/zaptel.c b/zaptel.c index 59ab714..69c4af5 100755 --- a/zaptel.c +++ b/zaptel.c @@ -2156,7 +2156,7 @@ static void zt_free_pseudo(struct zt_chan *pseudo) } } -static int __zt_open(struct inode *inode, struct file *file) +static int zt_open(struct inode *inode, struct file *file) { int unit = UNIT(file); struct zt_chan *chan; @@ -2187,6 +2187,7 @@ static int __zt_open(struct inode *inode, struct file *file) return zt_specchan_open(inode, file, unit, 1); } +#if 0 static int zt_open(struct inode *inode, struct file *file) { int res; @@ -2196,6 +2197,7 @@ static int zt_open(struct inode *inode, struct file *file) spin_unlock_irqrestore(&bigzaplock, flags); return res; } +#endif static ssize_t zt_read(struct file *file, char *usrbuf, size_t count, loff_t *ppos) { -- cgit v1.2.3