iscsit: use GFP_ATOMIC under spin lock
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 23 Nov 2012 04:07:39 +0000 (12:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:50:44 +0000 (08:50 -0800)
commit370caef9e8e2800a759d9c29e2c4d41375bdad62
tree26a3951afb4f4546bc5c73c2c85df6b39a1a4e1c
parent2e4be18823cb686f1316ac856ce1fbc651dd28e1
iscsit: use GFP_ATOMIC under spin lock

commit 3c989d7603872bf878840f7ce3ea49b73bea4c6c upstream.

The function iscsit_build_conn_drop_async_message() is called
from iscsit_close_connection() with spin lock 'sess->conn_lock'
held, so we should use GFP_ATOMIC instead of GFP_KERNEL.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/iscsi/iscsi_target.c