mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-03 20:07:24 -04:00
drbd: Renamed id_susp(union drbd_state s) to drbd_suspended(struct drbd_conf *)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
@@ -303,7 +303,7 @@ static void _req_may_be_done_not_susp(struct drbd_request *req, struct bio_and_e
|
||||
{
|
||||
struct drbd_conf *mdev = req->w.mdev;
|
||||
|
||||
if (!is_susp(mdev->state))
|
||||
if (!drbd_suspended(mdev))
|
||||
_req_may_be_done(req, m);
|
||||
}
|
||||
|
||||
@@ -789,7 +789,7 @@ int __drbd_make_request(struct drbd_conf *mdev, struct bio *bio, unsigned long s
|
||||
send_oos = rw == WRITE && drbd_should_send_out_of_sync(mdev->state);
|
||||
D_ASSERT(!(remote && send_oos));
|
||||
|
||||
if (!(local || remote) && !is_susp(mdev->state)) {
|
||||
if (!(local || remote) && !drbd_suspended(mdev)) {
|
||||
if (__ratelimit(&drbd_ratelimit_state))
|
||||
dev_err(DEV, "IO ERROR: neither local nor remote disk\n");
|
||||
err = -EIO;
|
||||
@@ -830,7 +830,7 @@ allocate_barrier:
|
||||
}
|
||||
}
|
||||
|
||||
if (is_susp(mdev->state)) {
|
||||
if (drbd_suspended(mdev)) {
|
||||
/* If we got suspended, use the retry mechanism of
|
||||
generic_make_request() to restart processing of this
|
||||
bio. In the next call to drbd_make_request
|
||||
|
||||
Reference in New Issue
Block a user