]> git.baikalelectronics.ru Git - kernel.git/commit
md: avoid taking the mutex on some ioctls.
authorNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:37:33 +0000 (13:37 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:37:33 +0000 (13:37 +1100)
commit122365e8db2bacde02df1921269ac64aeaa216c9
treea4c83843fc630c42853e1a5ecc51dff5ab3ef54f
parent286f805ab9065a0f09e2358225a43cdd146aeb9a
md: avoid taking the mutex on some ioctls.

Some ioctls don't need to take the mutex and doing so can cause
a delay as it is held during super-block update.
So move those ioctls out of the mutex and rely on rcu locking
to ensure we don't access stale data.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c