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)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 28 Nov 2012 06:49:21 +0000 (22:49 -0800)
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>
drivers/target/iscsi/iscsi_target.c

index 4ad14ac9a12ccec1f705f532a24ddb032b59b2ea..339f97f7085b941ea4f2f92c3030b5fd1544c33f 100644 (file)
@@ -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;
This page took 0.027915 seconds and 5 git commands to generate.