linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iscsit: use GFP_ATOMIC under spin lock
@ 2012-11-23  4:07 Wei Yongjun
  2012-11-28  2:53 ` Nicholas A. Bellinger
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2012-11-23  4:07 UTC (permalink / raw)
  To: nab; +Cc: yongjun_wei, linux-scsi, target-devel

From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

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>
---
 drivers/target/iscsi/iscsi_target.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c
index 035c2c7..3983ad3 100644
--- a/drivers/target/iscsi/iscsi_target.c
+++ b/drivers/target/iscsi/iscsi_target.c
@@ -2360,7 +2360,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;



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-28  2:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-23  4:07 [PATCH] iscsit: use GFP_ATOMIC under spin lock Wei Yongjun
2012-11-28  2:53 ` Nicholas A. Bellinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).