Lines Matching refs:cur_op
165 struct orangefs_kernel_op_s *cur_op; in orangefs_devreq_read() local
189 cur_op = NULL; in orangefs_devreq_read()
245 cur_op = op; in orangefs_devreq_read()
253 if (!cur_op) { in orangefs_devreq_read()
260 llu(cur_op->tag), in orangefs_devreq_read()
261 get_opname_string(cur_op)); in orangefs_devreq_read()
267 if (op_state_in_progress(cur_op) || op_state_serviced(cur_op)) { in orangefs_devreq_read()
269 list_del_init(&cur_op->list); in orangefs_devreq_read()
270 spin_unlock(&cur_op->lock); in orangefs_devreq_read()
275 list_del_init(&cur_op->list); in orangefs_devreq_read()
278 spin_unlock(&cur_op->lock); in orangefs_devreq_read()
288 &cur_op->tag, in orangefs_devreq_read()
293 &cur_op->upcall, in orangefs_devreq_read()
299 spin_lock(&cur_op->lock); in orangefs_devreq_read()
300 if (unlikely(op_state_given_up(cur_op))) { in orangefs_devreq_read()
301 spin_unlock(&cur_op->lock); in orangefs_devreq_read()
303 complete(&cur_op->waitq); in orangefs_devreq_read()
311 set_op_state_inprogress(cur_op); in orangefs_devreq_read()
315 get_opname_string(cur_op), in orangefs_devreq_read()
316 cur_op->op_state, in orangefs_devreq_read()
318 orangefs_devreq_add_op(cur_op); in orangefs_devreq_read()
319 spin_unlock(&cur_op->lock); in orangefs_devreq_read()
332 spin_lock(&cur_op->lock); in orangefs_devreq_read()
333 if (likely(!op_state_given_up(cur_op))) { in orangefs_devreq_read()
334 set_op_state_waiting(cur_op); in orangefs_devreq_read()
338 get_opname_string(cur_op), in orangefs_devreq_read()
339 cur_op->op_state, in orangefs_devreq_read()
341 list_add(&cur_op->list, &orangefs_request_list); in orangefs_devreq_read()
342 spin_unlock(&cur_op->lock); in orangefs_devreq_read()
344 spin_unlock(&cur_op->lock); in orangefs_devreq_read()
345 complete(&cur_op->waitq); in orangefs_devreq_read()