Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d05e7c4 authored by Lars Ellenberg's avatar Lars Ellenberg Committed by Philipp Reisner
Browse files

drbd: rename drbd_restart_write to drbd_restart_request



Meanwhile, this is used to restart failed READ requests as well.

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent 629663c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2434,7 +2434,7 @@ static void do_retry(struct work_struct *ws)
	}
}

void drbd_restart_write(struct drbd_request *req)
void drbd_restart_request(struct drbd_request *req)
{
	unsigned long flags;
	spin_lock_irqsave(&retry.lock, flags);
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ static void _req_is_done(struct drbd_conf *mdev, struct drbd_request *req, const
	}

	if (s & RQ_POSTPONED)
		drbd_restart_write(req);
		drbd_restart_request(req);
	else
		drbd_req_free(req);
}
+1 −1
Original line number Diff line number Diff line
@@ -269,7 +269,7 @@ extern void tl_restart(struct drbd_tconn *tconn, enum drbd_req_event what);
extern void _tl_restart(struct drbd_tconn *tconn, enum drbd_req_event what);

/* this is in drbd_main.c */
extern void drbd_restart_write(struct drbd_request *req);
extern void drbd_restart_request(struct drbd_request *req);

/* use this if you don't want to deal with calling complete_master_bio()
 * outside the spinlock, e.g. when walking some list on cleanup. */