char *comm = ctx->comm;
/* Lock the pagefrag before accessing entries */
- spin_lock(&ctx->pf.lock);
+ spin_lock_bh(&ctx->pf.lock);
/* Iterate through all log entries in this context */
while ((entry = ceph_san_log_iter_next(&iter)) != NULL) {
}
/* Unlock the pagefrag after we're done with this context */
- spin_unlock(&ctx->pf.lock);
+ spin_unlock_bh(&ctx->pf.lock);
}
spin_unlock(&g_logger.lock);
needed_size = sizeof(*entry) + len + 1;
/* Allocate entry from pagefrag - We need a spinlock here to protect access iterators */
- spin_lock(&ctx->pf.lock);
+ spin_lock_bh(&ctx->pf.lock);
alloc = cephsan_pagefrag_alloc(&ctx->pf, needed_size);
int loop_count = 0;
while (!alloc) {
entry->buffer = (char *)(entry + 1);
}
entry->len = cephsan_pagefrag_get_alloc_size(alloc);
- spin_unlock(&ctx->pf.lock);
+ spin_unlock_bh(&ctx->pf.lock);
/* Copy to entry buffer */
memcpy(entry->buffer, buf, len + 1);