]> git.baikalelectronics.ru Git - kernel.git/commit
md: rcu_read_lock() walk of mddev->disks in md_do_sync()
authorDan Williams <dan.j.williams@intel.com>
Sun, 13 Dec 2009 04:17:06 +0000 (21:17 -0700)
committerNeilBrown <neilb@suse.de>
Mon, 14 Dec 2009 01:57:43 +0000 (12:57 +1100)
commit4abee94e8ecd6a86f44e99f4df6f60b85156be18
treed5ddc749ec13db16c1ed7a054546c2ea482c0e1e
parentfaf2648512ca70fb9e37cc0c8271f5dcebe67e2a
md: rcu_read_lock() walk of mddev->disks in md_do_sync()

Other walks of this list are either under rcu_read_lock() or the list
mutation lock (mddev_lock()).  This protects against the improbable case of a
disk being removed from the array at the start of md_do_sync().

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/md/md.c