Lines Matching full:ibr
317 struct iblock_req *ibr = cmd->priv; in iblock_complete_cmd() local
320 if (!refcount_dec_and_test(&ibr->pending)) in iblock_complete_cmd()
325 else if (atomic_read(&ibr->ib_bio_err_cnt)) in iblock_complete_cmd()
331 kfree(ibr); in iblock_complete_cmd()
337 struct iblock_req *ibr = cmd->priv; in iblock_bio_done() local
345 atomic_inc(&ibr->ib_bio_err_cnt); in iblock_bio_done()
492 struct iblock_req *ibr; in iblock_execute_write_same() local
525 ibr = kzalloc(sizeof(struct iblock_req), GFP_KERNEL); in iblock_execute_write_same()
526 if (!ibr) in iblock_execute_write_same()
528 cmd->priv = ibr; in iblock_execute_write_same()
537 refcount_set(&ibr->pending, 1); in iblock_execute_write_same()
547 refcount_inc(&ibr->pending); in iblock_execute_write_same()
563 kfree(ibr); in iblock_execute_write_same()
729 struct iblock_req *ibr; in iblock_execute_rw() local
764 ibr = kzalloc(sizeof(struct iblock_req), GFP_KERNEL); in iblock_execute_rw()
765 if (!ibr) in iblock_execute_rw()
767 cmd->priv = ibr; in iblock_execute_rw()
770 refcount_set(&ibr->pending, 1); in iblock_execute_rw()
782 refcount_set(&ibr->pending, 2); in iblock_execute_rw()
812 refcount_inc(&ibr->pending); in iblock_execute_rw()
836 kfree(ibr); in iblock_execute_rw()