Lines Matching refs:rw
221 int rw; in drbd_req_complete() local
245 rw = bio_rw(req->master_bio); in drbd_req_complete()
270 if (rw == WRITE && in drbd_req_complete()
291 if (!ok && rw == READ && !list_empty(&req->tl_requests)) in drbd_req_complete()
1142 const int rw = bio_rw(bio); in drbd_submit_req_private_bio() local
1154 rw == WRITE ? DRBD_FAULT_DT_WR in drbd_submit_req_private_bio()
1155 : rw == READ ? DRBD_FAULT_DT_RD in drbd_submit_req_private_bio()
1185 const int rw = bio_data_dir(bio); in drbd_request_prepare() local
1209 if (rw == WRITE && req->private_bio && req->i.size in drbd_request_prepare()
1226 const int rw = bio_rw(req->master_bio); in drbd_send_and_submit() local
1232 if (rw == WRITE) { in drbd_send_and_submit()
1259 if (rw != WRITE) { in drbd_send_and_submit()
1270 if (rw == WRITE) in drbd_send_and_submit()
1276 if (rw == WRITE) { in drbd_send_and_submit()
1293 &device->pending_master_completion[rw == WRITE]); in drbd_send_and_submit()
1297 &device->pending_completion[rw == WRITE]); in drbd_send_and_submit()
1339 const int rw = bio_data_dir(req->master_bio); in submit_fast_path() local
1341 if (rw == WRITE /* rw != WRITE should not even end up here! */ in submit_fast_path()