mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
drbd: only restart frozen disk io when D_UP_TO_DATE
When re-attaching the local backend device to a C_STANDALONE D_DISKLESS R_PRIMARY with OND_SUSPEND_IO, we may only resume IO if we recognize the backend that is being attached as D_UP_TO_DATE. Signed-off-by: Philipp Reisner <[email protected]> Signed-off-by: Lars Ellenberg <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
0ead5cca3d
commit
af61494ad4
1 changed files with 1 additions and 1 deletions
|
|
@ -1675,7 +1675,7 @@ static void after_state_ch(struct drbd_device *device, union drbd_state os,
|
|||
what = RESEND;
|
||||
|
||||
if ((os.disk == D_ATTACHING || os.disk == D_NEGOTIATING) &&
|
||||
conn_lowest_disk(connection) > D_NEGOTIATING)
|
||||
conn_lowest_disk(connection) == D_UP_TO_DATE)
|
||||
what = RESTART_FROZEN_DISK_IO;
|
||||
|
||||
if (resource->susp_nod && what != NOTHING) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue