]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: avoid taking the mutex on some ioctls.
authorNeilBrown <neilb@suse.de>
Mon, 24 Sep 2012 06:41:28 +0000 (16:41 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 24 Sep 2012 06:41:28 +0000 (16:41 +1000)
commit120633ef3275b79642ad48cd4bc26452087d3cfd
tree530959719fbe92f209605b4e43be90b666c8bc1f
parent621ee93a80d4d97659028b0c9844f6b56248df4d
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