diff options
author | Philipp Reisner <philipp.reisner@linbit.com> | 2010-06-09 08:07:43 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2010-10-14 08:26:45 -0400 |
commit | 2a80699f807885d501f08a7006f6a56c1c937a6e (patch) | |
tree | 4a3cefc56201d9f88f898a1560945f85a09077d5 /drivers/block/drbd/drbd_req.c | |
parent | 288f422ec13667de40b278535d2a5fb5c77352c4 (diff) |
drbd: mod_req has now a return value
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_req.c')
-rw-r--r-- | drivers/block/drbd/drbd_req.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c index 4a30e2cae56d..d9df1a1c40b9 100644 --- a/drivers/block/drbd/drbd_req.c +++ b/drivers/block/drbd/drbd_req.c | |||
@@ -382,10 +382,11 @@ out_conflict: | |||
382 | * and it enforces that we have to think in a very structured manner | 382 | * and it enforces that we have to think in a very structured manner |
383 | * about the "events" that may happen to a request during its life time ... | 383 | * about the "events" that may happen to a request during its life time ... |
384 | */ | 384 | */ |
385 | void __req_mod(struct drbd_request *req, enum drbd_req_event what, | 385 | int __req_mod(struct drbd_request *req, enum drbd_req_event what, |
386 | struct bio_and_error *m) | 386 | struct bio_and_error *m) |
387 | { | 387 | { |
388 | struct drbd_conf *mdev = req->mdev; | 388 | struct drbd_conf *mdev = req->mdev; |
389 | int rv = 0; | ||
389 | m->bio = NULL; | 390 | m->bio = NULL; |
390 | 391 | ||
391 | switch (what) { | 392 | switch (what) { |
@@ -657,6 +658,8 @@ void __req_mod(struct drbd_request *req, enum drbd_req_event what, | |||
657 | _req_may_be_done(req, m); | 658 | _req_may_be_done(req, m); |
658 | break; | 659 | break; |
659 | }; | 660 | }; |
661 | |||
662 | return rv; | ||
660 | } | 663 | } |
661 | 664 | ||
662 | /* we may do a local read if: | 665 | /* we may do a local read if: |