summaryrefslogtreecommitdiff
path: root/fs/readdir.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-07-28 05:39:23 +0400
committerNeilBrown <neilb@suse.de>2011-07-28 05:39:23 +0400
commit856e08e23762dfb92ffc68fd0a8d228f9e152160 (patch)
treefa9977a39da542eebb2129712703c11009a56ff2 /fs/readdir.c
parent560f8e5532d63a314271bfb99d3d1d53c938ed14 (diff)
downloadlinux-856e08e23762dfb92ffc68fd0a8d228f9e152160.tar.xz
md/raid10: avoid reading from known bad blocks - part 1
This patch just covers the basic read path: 1/ read_balance needs to check for badblocks, and return not only the chosen slot, but also how many good blocks are available there. 2/ read submission must be ready to issue multiple reads to different devices as different bad blocks on different devices could mean that a single large read cannot be served by any one device, but can still be served by the array. This requires keeping count of the number of outstanding requests per bio. This count is stored in 'bi_phys_segments' On read error we currently just fail the request if another target cannot handle the whole request. Next patch refines that a bit. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'fs/readdir.c')
0 files changed, 0 insertions, 0 deletions