Hi Neil, I have made the desired changes and have tested the changes as well. As expected the performance gain with number of devices ( > 20 ) is quite visible. The code also looks simpler as compared to what it earlier was. I have created the following patches for the changes: PATCH [01/03] md: Removal of num_sectors from dev_info in linear raid This patch removes the num_sectors from dev_info and makes use of the rdev->sectors for all further usage. PATCH[02/03] md: Getting rid of sector_div and hash table in linear raid Removal of all the code pertaining hast table and other related data structures. This also makes the code really really simple. The searching being made linear for the time being to test the patch. PATCH[03/03] md: Replacing linear with a binary search This patch replaces the linear search in which_dev with binary search. The patches will follow this mail. -- Regards, Sandeep. “To learn is to change. Education is a process that changes the learner.” -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html