]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: avoid taking the mutex on some ioctls.
authorNeilBrown <neilb@suse.de>
Sat, 18 Aug 2012 00:03:23 +0000 (10:03 +1000)
committerNeilBrown <neilb@suse.de>
Sat, 18 Aug 2012 00:03:23 +0000 (10:03 +1000)
commiteef0978072c3b83c77a1215933be48a4d70b6206
tree6a5277108ea3900c307fc4d7811a0fd092508c37
parentb9f12113faa2c40fb617c336d74c10dae3bd1473
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