Lines Matching full:ibr
323 struct iblock_req *ibr = cmd->priv; in iblock_complete_cmd() local
326 if (!refcount_dec_and_test(&ibr->pending)) in iblock_complete_cmd()
331 else if (atomic_read(&ibr->ib_bio_err_cnt)) in iblock_complete_cmd()
337 kfree(ibr); in iblock_complete_cmd()
343 struct iblock_req *ibr = cmd->priv; in iblock_bio_done() local
351 atomic_inc(&ibr->ib_bio_err_cnt); in iblock_bio_done()
498 struct iblock_req *ibr; in iblock_execute_write_same() local
531 ibr = kzalloc(sizeof(struct iblock_req), GFP_KERNEL); in iblock_execute_write_same()
532 if (!ibr) in iblock_execute_write_same()
534 cmd->priv = ibr; in iblock_execute_write_same()
543 refcount_set(&ibr->pending, 1); in iblock_execute_write_same()
553 refcount_inc(&ibr->pending); in iblock_execute_write_same()
569 kfree(ibr); in iblock_execute_write_same()
735 struct iblock_req *ibr; in iblock_execute_rw() local
770 ibr = kzalloc(sizeof(struct iblock_req), GFP_KERNEL); in iblock_execute_rw()
771 if (!ibr) in iblock_execute_rw()
773 cmd->priv = ibr; in iblock_execute_rw()
776 refcount_set(&ibr->pending, 1); in iblock_execute_rw()
788 refcount_set(&ibr->pending, 2); in iblock_execute_rw()
818 refcount_inc(&ibr->pending); in iblock_execute_rw()
842 kfree(ibr); in iblock_execute_rw()