req->rq_bulkbuf = buf;
req->rq_bulklen = PAGE_SIZE;
- rc = ptl_send_buf(req, &req->rq_peer, MDS_BULK_PORTAL, 0);
init_waitqueue_head(&req->rq_wait_for_bulk);
+ rc = ptl_send_buf(req, &req->rq_peer, MDS_BULK_PORTAL, 0);
sleep_on(&req->rq_wait_for_bulk);
OBD_FREE(buf, PAGE_SIZE);
req->rq_bulklen = 0; /* FIXME: eek. */
int signal;
int rc;
-
wake_up(&mds->mds_done_waitq);
CDEBUG(D_INODE, "mds_wakes pick up req here and continue\n");
if (mds->mds_flags & MDS_STOPPING)
break;
-
/* if this process really wants to die,
* let it go */
if (sigismember(&(current->pending.signal),
break;
}
- service = (struct ptlrpc_service *)ev.mem_desc.user_ptr;
+ service = (struct ptlrpc_service *)ev.mem_desc.user_ptr;
/* FIXME: If we move to an event-driven model,
* we should put the request on the stack of
{
init_waitqueue_head(&mds->mds_waitq);
init_waitqueue_head(&mds->mds_done_waitq);
- kernel_thread(mds_main, (void *)mds,
- CLONE_VM | CLONE_FS | CLONE_FILES);
+ kernel_thread(mds_main, (void *)mds, CLONE_VM | CLONE_FS | CLONE_FILES);
while (!mds->mds_thread)
sleep_on(&mds->mds_done_waitq);
}
-/*
+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
+ *
* linux/mds/mds_reint.c
*
* Lustre Metadata Server (mds) reintegration routines
}
if (dchild->d_inode) {
- CERROR("child exists (dir %ld, name %s\n",
+ CERROR("child exists (dir %ld, name %s)\n",
de->d_inode->i_ino, rec->ur_name);
dput(de);
req->rq_rephdr->status = -EEXIST;