]> git.baikalelectronics.ru Git - kernel.git/commit
md: using GFP_NOIO to allocate bio for flush request
authorShaohua Li <shli@kernel.org>
Sun, 20 May 2012 23:26:59 +0000 (09:26 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 20 May 2012 23:26:59 +0000 (09:26 +1000)
commitc5f65a3f4653ad84032ba8723f36bd1ca4f7398e
treea9f009012ccdca7c9daefb089e9dbca7224843c7
parent9415b72670120e60c0ad44e0b8e39463be5b8068
md: using GFP_NOIO to allocate bio for flush request

A flush request is usually issued in transaction commit code path, so
using GFP_KERNEL to allocate memory for flush request bio falls into
the classic deadlock issue.

This is suitable for any -stable kernel to which it applies as it
avoids a possible deadlock.

Cc: stable@vger.kernel.org
Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c