diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-11-23 12:07:39 +0800 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-11-27 22:49:21 -0800 |
commit | 3c989d7603872bf878840f7ce3ea49b73bea4c6c (patch) | |
tree | fcebcfca5299ca7593a78df17b6f7fb3b15a4bb8 /drivers | |
parent | b07c28aab52edffb592429637fed846c48dca0a8 (diff) | |
download | linux-stable-3c989d7603872bf878840f7ce3ea49b73bea4c6c.tar.gz linux-stable-3c989d7603872bf878840f7ce3ea49b73bea4c6c.tar.bz2 linux-stable-3c989d7603872bf878840f7ce3ea49b73bea4c6c.zip |
iscsit: use GFP_ATOMIC under spin lock
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>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/target/iscsi/iscsi_target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index 4ad14ac9a12c..339f97f7085b 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c @@ -2336,7 +2336,7 @@ static void iscsit_build_conn_drop_async_message(struct iscsi_conn *conn) if (!conn_p) return; - cmd = iscsit_allocate_cmd(conn_p, GFP_KERNEL); + cmd = iscsit_allocate_cmd(conn_p, GFP_ATOMIC); if (!cmd) { iscsit_dec_conn_usage_count(conn_p); return; |