]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
md/raid1: intialise start_next_window for READ case to avoid hang
authorNeilBrown <neilb@suse.de>
Mon, 22 Sep 2014 00:06:23 +0000 (10:06 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:11 +0000 (13:41 -0700)
commitf3a221f2c2aef45868a3f191a2fe820b472a18fe
tree2964a12570c06c61445d51274c02f6ef7bff0726
parentb867dcdf636d5f7f9d0dff78d463aebe6c0c897d
md/raid1: intialise start_next_window for READ case to avoid hang

commit f0cc9a057151892b885be21a1d19b0185568281d upstream.

r1_bio->start_next_window is not initialised in the READ
case, so allow_barrier may incorrectly decrement
   conf->current_window_requests
which can cause raise_barrier() to block forever.

Fixes: 79ef3a8aa1cb1523cc231c9a90a278333c21f761
Reported-by: Brassow Jonathan <jbrassow@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/raid1.c