From 869ffbb36110393ba7204e90a5ddfa648b552060 Mon Sep 17 00:00:00 2001 From: Yan Burman Date: Wed, 11 Feb 2015 13:14:47 +0000 Subject: [PATCH] isert: Fix crash on service stop when under heavy login/logout load (merge r6081 from iser) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x-iser@6083 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/isert-scst/isert_login.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsi-scst/kernel/isert-scst/isert_login.c b/iscsi-scst/kernel/isert-scst/isert_login.c index 96c268c3a..787d494b2 100644 --- a/iscsi-scst/kernel/isert-scst/isert_login.c +++ b/iscsi-scst/kernel/isert-scst/isert_login.c @@ -775,7 +775,7 @@ static unsigned int isert_poll(struct file *filp, poll_wait(filp, &dev->waitqueue, wait); - if (!dev->conn) + if (!dev->conn || dev->state == CS_DISCONNECTED) mask |= POLLHUP | POLLIN; else { if (!will_read_block(dev))