Lines Matching refs:ibr
313 struct iblock_req *ibr = cmd->priv; in iblock_complete_cmd() local
316 if (!refcount_dec_and_test(&ibr->pending)) in iblock_complete_cmd()
319 if (atomic_read(&ibr->ib_bio_err_cnt)) in iblock_complete_cmd()
325 kfree(ibr); in iblock_complete_cmd()
331 struct iblock_req *ibr = cmd->priv; in iblock_bio_done() local
338 atomic_inc(&ibr->ib_bio_err_cnt); in iblock_bio_done()
485 struct iblock_req *ibr; in iblock_execute_write_same() local
518 ibr = kzalloc(sizeof(struct iblock_req), GFP_KERNEL); in iblock_execute_write_same()
519 if (!ibr) in iblock_execute_write_same()
521 cmd->priv = ibr; in iblock_execute_write_same()
530 refcount_set(&ibr->pending, 1); in iblock_execute_write_same()
540 refcount_inc(&ibr->pending); in iblock_execute_write_same()
556 kfree(ibr); in iblock_execute_write_same()
723 struct iblock_req *ibr; in iblock_execute_rw() local
753 ibr = kzalloc(sizeof(struct iblock_req), GFP_KERNEL); in iblock_execute_rw()
754 if (!ibr) in iblock_execute_rw()
756 cmd->priv = ibr; in iblock_execute_rw()
759 refcount_set(&ibr->pending, 1); in iblock_execute_rw()
771 refcount_set(&ibr->pending, 2); in iblock_execute_rw()
801 refcount_inc(&ibr->pending); in iblock_execute_rw()
825 kfree(ibr); in iblock_execute_rw()