]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[PATCH] md: use correct size of raid5 stripe cache when measuring how full it is
authorNeilBrown <neilb@suse.de>
Mon, 12 Dec 2005 10:39:17 +0000 (02:39 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 12 Dec 2005 17:06:04 +0000 (09:06 -0800)
commit5036805be7b815eb18dcce489d974f3aee4f3841
tree3d112acbe459fafee17f41cb634e483080b48607
parent3795bb0fc52fe2af2749f3ad2185cb9c90871ef8
[PATCH] md: use correct size of raid5 stripe cache when measuring how full it is

The raid5 stripe cache was recently changed from fixed size (NR_STRIPES) to
variable size (conf->max_nr_stripes).  However there are two places that still
use the constant and as a result, reducing the size of the stripe cache can
result in a deadlock.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/raid5.c