From ea5e08e74b2bd7c485a6f229de5341fe28ffd5c6 Mon Sep 17 00:00:00 2001 From: Yan Burman Date: Wed, 11 Feb 2015 13:05:34 +0000 Subject: [PATCH] isert: Fix crash on service stop when under heavy login/logout load Signed-off-by: Yan Burman git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6081 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 b18020f8a..4455e9473 100644 --- a/iscsi-scst/kernel/isert-scst/isert_login.c +++ b/iscsi-scst/kernel/isert-scst/isert_login.c @@ -768,7 +768,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))