Lines Matching refs:ibr
285 struct iblock_req *ibr = cmd->priv; in iblock_complete_cmd() local
288 if (!refcount_dec_and_test(&ibr->pending)) in iblock_complete_cmd()
291 if (atomic_read(&ibr->ib_bio_err_cnt)) in iblock_complete_cmd()
297 kfree(ibr); in iblock_complete_cmd()
303 struct iblock_req *ibr = cmd->priv; in iblock_bio_done() local
310 atomic_inc(&ibr->ib_bio_err_cnt); in iblock_bio_done()
460 struct iblock_req *ibr; in iblock_execute_write_same() local
489 ibr = kzalloc(sizeof(struct iblock_req), GFP_KERNEL); in iblock_execute_write_same()
490 if (!ibr) in iblock_execute_write_same()
492 cmd->priv = ibr; in iblock_execute_write_same()
501 refcount_set(&ibr->pending, 1); in iblock_execute_write_same()
512 refcount_inc(&ibr->pending); in iblock_execute_write_same()
528 kfree(ibr); in iblock_execute_write_same()
688 struct iblock_req *ibr; in iblock_execute_rw() local
714 ibr = kzalloc(sizeof(struct iblock_req), GFP_KERNEL); in iblock_execute_rw()
715 if (!ibr) in iblock_execute_rw()
717 cmd->priv = ibr; in iblock_execute_rw()
720 refcount_set(&ibr->pending, 1); in iblock_execute_rw()
733 refcount_set(&ibr->pending, 2); in iblock_execute_rw()
754 refcount_inc(&ibr->pending); in iblock_execute_rw()
778 kfree(ibr); in iblock_execute_rw()