mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
drbd: fail_requests_early: remove incorrect and unnecessary optimization
The condition does not fit the commend (I may well be Primary, even if I lost the disk earlier and now the connection). And this is catched below anyways, where it also gets logged. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
6666032ade
commit
979f5c7f1f
1 changed files with 0 additions and 5 deletions
|
@ -962,11 +962,6 @@ static int drbd_make_request_common(struct drbd_conf *mdev, struct bio *bio)
|
|||
*/
|
||||
static int drbd_fail_request_early(struct drbd_conf *mdev, int is_write)
|
||||
{
|
||||
/* Unconfigured */
|
||||
if (mdev->state.conn == C_DISCONNECTING &&
|
||||
mdev->state.disk == D_DISKLESS)
|
||||
return 1;
|
||||
|
||||
if (mdev->state.role != R_PRIMARY &&
|
||||
(!allow_oos || is_write)) {
|
||||
if (__ratelimit(&drbd_ratelimit_state)) {
|
||||
|
|
Loading…
Reference in a new issue