On Tue, Mar 04, 2008 at 04:49:58PM -0800, Sunil Mushran wrote:
> This patch dumps all the tasks on the workqueue it can fit in one page
> into a debugfs file. Useful for debugging.
 
> +void dlm_request_all_locks_worker(struct dlm_work_item *item, void *data);
> +void dlm_mig_lockres_worker(struct dlm_work_item *item, void *data);
> +void dlm_assert_master_worker(struct dlm_work_item *item, void *data);
<snip>
> +             if (wi->func == dlm_request_all_locks_worker) {
> +                     out += snprintf(db->buf + out, db->len - out,
> +                                     "RequestAllLocks, "
> +                                     "recomaster=%d, deadnode=%d\n",
> +                                     wi->u.ral.reco_master,
> +                                     wi->u.ral.dead_node);
> +             } else if (wi->func == dlm_mig_lockres_worker) {

        There *has* to be a better way to determine what kind of worker
we have.  De-staticing functions just to compare them is pretty heavy
handed.

Joel

-- 

"Every new beginning comes from some other beginning's end."

Joel Becker
Principal Software Developer
Oracle
E-mail: [EMAIL PROTECTED]
Phone: (650) 506-8127

_______________________________________________
Ocfs2-devel mailing list
[email protected]
http://oss.oracle.com/mailman/listinfo/ocfs2-devel

Reply via email to