Lines Matching refs:private_bio

233 	error = PTR_ERR(req->private_bio);  in drbd_req_complete()
1042 if (req->private_bio) { in do_remote_read()
1045 bio_put(req->private_bio); in do_remote_read()
1046 req->private_bio = NULL; in do_remote_read()
1054 if (req->private_bio == NULL) in do_remote_read()
1064 if (rbm == RB_PREFER_LOCAL && req->private_bio) in do_remote_read()
1068 if (req->private_bio) { in do_remote_read()
1069 bio_put(req->private_bio); in do_remote_read()
1070 req->private_bio = NULL; in do_remote_read()
1141 req->private_bio->bi_status = BLK_STS_IOERR; in drbd_process_discard_or_zeroes_req()
1142 bio_endio(req->private_bio); in drbd_process_discard_or_zeroes_req()
1149 struct bio *bio = req->private_bio; in drbd_submit_req_private_bio()
1218 req->private_bio = bio_alloc_clone(device->ldev->backing_bdev, in drbd_request_prepare()
1221 req->private_bio->bi_private = req; in drbd_request_prepare()
1222 req->private_bio->bi_end_io = drbd_request_endio; in drbd_request_prepare()
1230 if (rw == WRITE && req->private_bio && req->i.size in drbd_request_prepare()
1337 if (req->private_bio) { in drbd_send_and_submit()
1338 bio_put(req->private_bio); in drbd_send_and_submit()
1339 req->private_bio = NULL; in drbd_send_and_submit()
1349 if (!do_remote_read(req) && !req->private_bio) in drbd_send_and_submit()
1366 if (req->private_bio && !may_do_writes(device)) { in drbd_send_and_submit()
1367 bio_put(req->private_bio); in drbd_send_and_submit()
1368 req->private_bio = NULL; in drbd_send_and_submit()
1377 if (req->private_bio == NULL) { in drbd_send_and_submit()
1395 if (req->private_bio) { in drbd_send_and_submit()
1446 && req->private_bio && req->i.size in submit_fast_path()