]> bbs.cooldavid.org Git - net-next-2.6.git/commit
md/raid5: add missing call to schedule() after prepare_to_wait()
authorDan Williams <dan.j.williams@intel.com>
Tue, 16 Jun 2009 23:00:33 +0000 (16:00 -0700)
committerNeilBrown <neilb@suse.de>
Wed, 17 Jun 2009 22:50:18 +0000 (08:50 +1000)
commit7a3ab908948b6296ee7e81d42f7c176361c51975
tree61a066da1bda9af8268bb865e609518be8efd024
parent495d357301e1de01fabe30ce9a555301fb4675c3
md/raid5: add missing call to schedule() after prepare_to_wait()

In the unlikely event that reshape progresses past the current request
while it is waiting for a stripe we need to schedule() before retrying
for 2 reasons:
1/ Prevent list corruption from duplicated list_add() calls without
   intervening list_del().
2/ Give the reshape code a chance to make some progress to resolve the
   conflict.

Cc: <stable@kernel.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c