From 994908e601cd6a43ed002a58395e5d1c7541f354 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 11 Jun 2015 15:47:59 +0000 Subject: [PATCH] Merge r6083 from 3.0.x-iser branch git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6260 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))