]> err.no Git - linux-2.6/blobdiff - fs/nfs/nfs4proc.c
reiserfs: removed duplicated #include
[linux-2.6] / fs / nfs / nfs4proc.c
index 4451287a81d16aa4233c39459e6995d09916ae5d..c910413eaecafd80ff2c6012dda6baad388cc6dd 100644 (file)
@@ -451,9 +451,7 @@ static struct nfs4_state *nfs4_try_open_cached(struct nfs4_opendata *opendata)
                /* Save the delegation */
                memcpy(stateid.data, delegation->stateid.data, sizeof(stateid.data));
                rcu_read_unlock();
-               lock_kernel();
                ret = nfs_may_open(state->inode, state->owner->so_cred, open_mode);
-               unlock_kernel();
                if (ret != 0)
                        goto out;
                ret = -EAGAIN;