diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-05-01 17:36:39 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2004-05-01 17:36:39 +0000 |
commit | 484f5a7ce35849730f5cf4668c2675e7579e972b (patch) | |
tree | 965fe1463e16deb9649eced4d66e0c671b2a7804 /zaptel.c | |
parent | 98f322a87fb25a4a9c91b830e3a6298af9a0c309 (diff) |
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
Diffstat (limited to 'zaptel.c')
-rwxr-xr-x | zaptel.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |