Whamcloud - gitweb
Move debugging message outside spinlock.
authoradilger <adilger>
Sat, 5 Oct 2002 14:11:23 +0000 (14:11 +0000)
committeradilger <adilger>
Sat, 5 Oct 2002 14:11:23 +0000 (14:11 +0000)
lustre/mds/handler.c

index 0ad752b..3d209df 100644 (file)
@@ -762,9 +762,9 @@ static int mds_open(struct ptlrpc_request *req)
                 if (!memcmp(&mfd->mfd_clienthandle, &body->handle,
                             sizeof(mfd->mfd_clienthandle)) &&
                     body->fid1.id == mfd->mfd_file->f_dentry->d_inode->i_ino) {
-                        CERROR("Re opening "LPD64"\n", body->fid1.id);
                         de = mfd->mfd_file->f_dentry;
                         spin_unlock(&med->med_open_lock);
+                        CERROR("Re opening "LPD64"\n", body->fid1.id);
                         GOTO(out_pack, rc = 0);
                 }
         }