Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346211
b: refs/heads/master
c: 5df69ec
h: refs/heads/master
i:
  346209: 49b9d0c
  346207: 572805e
v: v3
  • Loading branch information
Lars Ellenberg authored and Philipp Reisner committed Nov 8, 2012
1 parent cbb8b2d commit eb38982
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5da9c8364443797ece9393670fb7ab69cff055ed
refs/heads/master: 5df69ece6e93cfd4e09b14bf32bd101df6cbde38
2 changes: 1 addition & 1 deletion trunk/drivers/block/drbd/drbd_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ extern void conn_free_crypto(struct drbd_tconn *tconn);
extern int proc_details;

/* drbd_req */
extern int __drbd_make_request(struct drbd_conf *, struct bio *, unsigned long);
extern void __drbd_make_request(struct drbd_conf *, struct bio *, unsigned long);
extern int drbd_make_request(struct request_queue *q, struct bio *bio);
extern int drbd_read_remote(struct drbd_conf *mdev, struct drbd_request *req);
extern int drbd_merge_bvec(struct request_queue *q, struct bvec_merge_data *bvm, struct bio_vec *bvec);
Expand Down
5 changes: 2 additions & 3 deletions trunk/drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2236,9 +2236,8 @@ static void do_retry(struct work_struct *ws)

/* We are not just doing generic_make_request(),
* as we want to keep the start_time information. */
do {
inc_ap_bio(mdev);
} while(__drbd_make_request(mdev, bio, start_time));
inc_ap_bio(mdev);
__drbd_make_request(mdev, bio, start_time);
}
}

Expand Down
13 changes: 6 additions & 7 deletions trunk/drivers/block/drbd/drbd_req.c
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ drbd_submit_req_private_bio(struct drbd_request *req)
bio_endio(bio, -EIO);
}

int __drbd_make_request(struct drbd_conf *mdev, struct bio *bio, unsigned long start_time)
void __drbd_make_request(struct drbd_conf *mdev, struct bio *bio, unsigned long start_time)
{
const int rw = bio_rw(bio);
struct bio_and_error m = { NULL, };
Expand All @@ -960,7 +960,7 @@ int __drbd_make_request(struct drbd_conf *mdev, struct bio *bio, unsigned long s
* if user cannot handle io errors, that's not our business. */
dev_err(DEV, "could not kmalloc() req\n");
bio_endio(bio, -ENOMEM);
return 0;
return;
}
req->start_time = start_time;

Expand Down Expand Up @@ -1039,7 +1039,7 @@ int __drbd_make_request(struct drbd_conf *mdev, struct bio *bio, unsigned long s
drbd_submit_req_private_bio(req);
/* once we have submitted, we must no longer look at req,
* it may already be destroyed. */
return 0;
return;
} else if (no_remote) {
nodata:
if (__ratelimit(&drbd_ratelimit_state))
Expand All @@ -1054,7 +1054,7 @@ int __drbd_make_request(struct drbd_conf *mdev, struct bio *bio, unsigned long s

if (m.bio)
complete_master_bio(mdev, &m);
return 0;
return;
}

int drbd_make_request(struct request_queue *q, struct bio *bio)
Expand All @@ -1070,9 +1070,8 @@ int drbd_make_request(struct request_queue *q, struct bio *bio)
D_ASSERT(bio->bi_size > 0);
D_ASSERT(IS_ALIGNED(bio->bi_size, 512));

do {
inc_ap_bio(mdev);
} while (__drbd_make_request(mdev, bio, start_time));
inc_ap_bio(mdev);
__drbd_make_request(mdev, bio, start_time);

return 0;
}
Expand Down

0 comments on commit eb38982

Please sign in to comment.