md: mark some attributes as pre-alloc
authorNeilBrown <neilb@suse.de>
Mon, 29 Sep 2014 22:53:05 +0000 (08:53 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 25 Feb 2015 00:38:46 +0000 (11:38 +1100)
commit750f199ee8b578062341e6ddfe36c59ac8ff2dcb
tree406d8eb49a99834266b397656820d9430faca3f2
parent16d9cfab930bb6f4946cff8ba7429701fd15b414
md: mark some attributes as pre-alloc

Since __ATTR_PREALLOC was introduced in v3.19-rc1~78^2~18
it can now be used by md.

This ensure that writing to these sysfs attributes will never
block due to a memory allocation.
Such blocking could become a deadlock if mdmon is trying to
reconfigure an array after a failure prior to re-enabling writes.

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