]> git.hungrycats.org Git - linux/commitdiff
[SPARC64]: file_lock is now a spin lock.
authorDavid S. Miller <davem@nuts.ninka.net>
Sun, 13 Apr 2003 11:59:54 +0000 (04:59 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Sun, 13 Apr 2003 11:59:54 +0000 (04:59 -0700)
arch/sparc64/solaris/ioctl.c

index 0288fdbee40b3621d96a9d0475c91d7ceb38d2b5..370c3d9bdf11284dc3bb6e8d8342e0b57bed9af1 100644 (file)
@@ -291,15 +291,15 @@ static inline int solaris_sockmod(unsigned int fd, unsigned int cmd, u32 arg)
 {
        struct inode *ino;
        /* I wonder which of these tests are superfluous... --patrik */
-       read_lock(&current->files->file_lock);
+       spin_lock(&current->files->file_lock);
        if (! current->files->fd[fd] ||
            ! current->files->fd[fd]->f_dentry ||
            ! (ino = current->files->fd[fd]->f_dentry->d_inode) ||
            ! ino->i_sock) {
-               read_unlock(&current->files->file_lock);
+               spin_unlock(&current->files->file_lock);
                return TBADF;
        }
-       read_unlock(&current->files->file_lock);
+       spin_unlock(&current->files->file_lock);
        
        switch (cmd & 0xff) {
        case 109: /* SI_SOCKPARAMS */