]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit201736ab08d7fb4e86facc8d839aed4762ca4d8a
tree406d8eb49a99834266b397656820d9430faca3f2
parent03ee29489cd608f569ff941e28f2ef48a59432ce
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