md: using GFP_NOIO to allocate bio for flush request
commit85968a996b092b9fe3bef36065e758dcd1550a23
authorShaohua Li <shli@kernel.org>
Sun, 20 May 2012 23:26:59 +0000 (21 09:26 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:12:56 +0000 (1 15:12 +0800)
treef2551c242e49867c16751df0613dab17791734e4
parentbeb9576530bc9a2685847fa1fcbf96b97686fcaf
md: using GFP_NOIO to allocate bio for flush request

commit b5e1b8cee7ad58a15d2fa79bcd7946acb592602d upstream.

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.

Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/md.c