Message ID | alpine.LRH.2.02.2205031635530.11434@file01.intranet.prod.int.rdu2.redhat.com |
---|---|
State | New |
Headers | show |
Series | [v4.14] dm: interlock pending dm_io and dm_wait_for_bios_completion | expand |
Index: linux-stable/drivers/md/dm.c =================================================================== --- linux-stable.orig/drivers/md/dm.c 2022-04-30 19:16:55.000000000 +0200 +++ linux-stable/drivers/md/dm.c 2022-04-30 19:16:55.000000000 +0200 @@ -2230,6 +2230,8 @@ static int dm_wait_for_completion(struct } finish_wait(&md->wait, &wait); + smp_rmb(); /* paired with atomic_dec_return in end_io_acct */ + return r; }