Skip to content
Snippets Groups Projects
Commit 2e4a75ce authored by Phil Schwan's avatar Phil Schwan
Browse files

- Add more DLM threads

- Fix unlink() of nonexistant file
parent 29c6c9f2
No related branches found
No related tags found
No related merge requests found
......@@ -388,6 +388,26 @@ static int ldlm_setup(struct obd_device *obddev, obd_count len, void *buf)
CERROR("cannot start thread\n");
LBUG();
}
err = ptlrpc_start_thread(obddev, ldlm->ldlm_service, "lustre_dlm");
if (err) {
CERROR("cannot start thread\n");
LBUG();
}
err = ptlrpc_start_thread(obddev, ldlm->ldlm_service, "lustre_dlm");
if (err) {
CERROR("cannot start thread\n");
LBUG();
}
err = ptlrpc_start_thread(obddev, ldlm->ldlm_service, "lustre_dlm");
if (err) {
CERROR("cannot start thread\n");
LBUG();
}
err = ptlrpc_start_thread(obddev, ldlm->ldlm_service, "lustre_dlm");
if (err) {
CERROR("cannot start thread\n");
LBUG();
}
MOD_INC_USE_COUNT;
RETURN(0);
......
......@@ -430,8 +430,7 @@ static int mds_reint_unlink(struct mds_update_record *rec, int offset,
if (!inode) {
CERROR("child doesn't exist (dir %ld, name %s\n",
dir->i_ino, rec->ur_name);
LBUG();
GOTO(out_unlink_dchild, rc = -ESTALE);
GOTO(out_unlink_dchild, rc = -ENOENT);
}
#if 0 /* in intent case the client doesn't have the inode */
......@@ -485,7 +484,8 @@ static int mds_reint_unlink(struct mds_update_record *rec, int offset,
EXIT;
out_unlink_dchild:
res_id[0] = inode->i_ino;
if (!rc)
res_id[0] = inode->i_ino;
l_dput(dchild);
out_unlink_de:
up(&dir->i_sem);
......
......@@ -17,7 +17,7 @@ int main(int argc, char ** argv)
rc = mknod(argv[1], S_IFREG| 0444, 0);
if (rc) {
printf("error: %s\n", strerror(errno));
printf("mknod(%s) error: %s\n", argv[1], strerror(errno));
}
return rc;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment