Commit 0d39ce1f authored by Nathan Scott's avatar Nathan Scott

[XFS] Prevent log ktrace code from sleeping in an invalid context.

SGI Modid: 2.5.x-xfs:slinx:162768a
parent 5e6ff38f
...@@ -163,8 +163,11 @@ xfs_buftarg_t *xlog_target; ...@@ -163,8 +163,11 @@ xfs_buftarg_t *xlog_target;
void void
xlog_trace_loggrant(xlog_t *log, xlog_ticket_t *tic, xfs_caddr_t string) xlog_trace_loggrant(xlog_t *log, xlog_ticket_t *tic, xfs_caddr_t string)
{ {
if (! log->l_grant_trace) {
log->l_grant_trace = ktrace_alloc(1024, KM_NOSLEEP);
if (! log->l_grant_trace) if (! log->l_grant_trace)
log->l_grant_trace = ktrace_alloc(1024, KM_SLEEP); return;
}
ktrace_enter(log->l_grant_trace, ktrace_enter(log->l_grant_trace,
(void *)tic, (void *)tic,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment