]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: avoid taking the mutex on some ioctls.
authorNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 02:37:25 +0000 (12:37 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 02:37:25 +0000 (12:37 +1000)
commit29cd410007f217d5b2912024f74a6b15a6dc255f
tree46d932b3eff3d94f515d9d69d1c72cfd22547f85
parent2a4eb434330c43b6904f81d3ecc40ca1e98326be
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