Lines Matching full:permit
264 * are stopped and put to sleep. If last permit, which has been just put,
292 struct rtrs_permit *permit; in rnbd_get_permit() local
294 permit = rtrs_clt_get_permit(sess->rtrs, con_type, wait); in rnbd_get_permit()
295 if (permit) in rnbd_get_permit()
298 * because loser will get NULL as a permit, observe 0 busy in rnbd_get_permit()
303 return permit; in rnbd_get_permit()
307 struct rtrs_permit *permit) in rnbd_put_permit() argument
309 rtrs_clt_put_permit(sess->rtrs, permit); in rnbd_put_permit()
323 struct rtrs_permit *permit; in rnbd_get_iu() local
329 permit = rnbd_get_permit(sess, con_type, wait); in rnbd_get_iu()
330 if (!permit) { in rnbd_get_iu()
335 iu->permit = permit; in rnbd_get_iu()
349 rnbd_put_permit(sess, permit); in rnbd_get_iu()
361 rnbd_put_permit(sess, iu->permit); in rnbd_put_iu()
374 rnbd_put_permit(sess, iu->permit); in rnbd_softirq_done_fn()
422 err = rtrs_clt_request(dir, &req_ops, rtrs, iu->permit, in send_usr_msg()
993 struct rtrs_permit *permit = iu->permit; in rnbd_client_xfer_request() local
1030 err = rtrs_clt_request(rq_data_dir(rq), &req_ops, rtrs, permit, in rnbd_client_xfer_request()
1123 iu->permit = rnbd_get_permit(dev->sess, RTRS_IO_CON, in rnbd_queue_rq()
1125 if (!iu->permit) { in rnbd_queue_rq()
1141 rnbd_put_permit(dev->sess, iu->permit); in rnbd_queue_rq()
1154 rnbd_put_permit(dev->sess, iu->permit); in rnbd_queue_rq()