Lines Matching refs:rw
220 int rw; in drbd_req_complete() local
244 rw = bio_rw(req->master_bio); in drbd_req_complete()
269 if (rw == WRITE && in drbd_req_complete()
290 if (!ok && rw == READ && !list_empty(&req->tl_requests)) in drbd_req_complete()
1141 const int rw = bio_rw(bio); in drbd_submit_req_private_bio() local
1153 rw == WRITE ? DRBD_FAULT_DT_WR in drbd_submit_req_private_bio()
1154 : rw == READ ? DRBD_FAULT_DT_RD in drbd_submit_req_private_bio()
1184 const int rw = bio_data_dir(bio); in drbd_request_prepare() local
1207 if (rw == WRITE && req->private_bio && req->i.size in drbd_request_prepare()
1224 const int rw = bio_rw(req->master_bio); in drbd_send_and_submit() local
1230 if (rw == WRITE) { in drbd_send_and_submit()
1257 if (rw != WRITE) { in drbd_send_and_submit()
1268 if (rw == WRITE) in drbd_send_and_submit()
1274 if (rw == WRITE) { in drbd_send_and_submit()
1291 &device->pending_master_completion[rw == WRITE]); in drbd_send_and_submit()
1295 &device->pending_completion[rw == WRITE]); in drbd_send_and_submit()
1337 const int rw = bio_data_dir(req->master_bio); in submit_fast_path() local
1339 if (rw == WRITE /* rw != WRITE should not even end up here! */ in submit_fast_path()