raid5: lockless access raid5 overrided bi_phys_segments
authorShaohua Li <shli@kernel.org>
Thu, 19 Jul 2012 06:01:31 +0000 (16:01 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 19 Jul 2012 06:01:31 +0000 (16:01 +1000)
commite7836bd6f60d659830b87804f7f4026edfe0f1d1
tree48b8be28ae6d47697307d6fbce9d35c4fd1506f0
parent4eb788df670ef30a19b7ea15b107ea440544bc80
raid5: lockless access raid5 overrided bi_phys_segments

Raid5 overrides bio->bi_phys_segments, accessing it is with device_lock hold,
which is unnecessary, We can make it lockless actually.

Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c