Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309342
b: refs/heads/master
c: 46385c8
h: refs/heads/master
v: v3
  • Loading branch information
Lars Ellenberg authored and Philipp Reisner committed May 9, 2012
1 parent 600d5cf commit 0148c42
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 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: d64957c9a9757642f59aa4a63dadf159b2694bab
refs/heads/master: 46385c84acd6654d3a38c9c7af1921dbded74aa2
4 changes: 0 additions & 4 deletions trunk/drivers/block/drbd/drbd_req.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ int __req_mod(struct drbd_request *req, enum drbd_req_event what,
req->rq_state &= ~RQ_LOCAL_PENDING;

_req_may_be_done_not_susp(req, m);
put_ldev(mdev);
break;

case abort_disk_io:
Expand All @@ -458,15 +457,13 @@ int __req_mod(struct drbd_request *req, enum drbd_req_event what,

__drbd_chk_io_error(mdev, false);
_req_may_be_done_not_susp(req, m);
put_ldev(mdev);
break;

case read_ahead_completed_with_error:
/* it is legal to fail READA */
req->rq_state |= RQ_LOCAL_COMPLETED;
req->rq_state &= ~RQ_LOCAL_PENDING;
_req_may_be_done_not_susp(req, m);
put_ldev(mdev);
break;

case read_completed_with_error:
Expand All @@ -478,7 +475,6 @@ int __req_mod(struct drbd_request *req, enum drbd_req_event what,
D_ASSERT(!(req->rq_state & RQ_NET_MASK));

__drbd_chk_io_error(mdev, false);
put_ldev(mdev);

goto_queue_for_net_read:

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/block/drbd/drbd_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ void drbd_endio_pri(struct bio *bio, int error)
spin_lock_irqsave(&mdev->req_lock, flags);
__req_mod(req, what, &m);
spin_unlock_irqrestore(&mdev->req_lock, flags);
put_ldev(mdev);

if (m.bio)
complete_master_bio(mdev, &m);
Expand Down

0 comments on commit 0148c42

Please sign in to comment.