From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] cnic: Fix ISCSI_KEVENT_IF_DOWN message handling. Date: Mon, 27 Jul 2009 11:26:10 -0700 (PDT) Message-ID: <20090727.112610.226306367.davem@davemloft.net> References: <1248318115-14214-1-git-send-email-mchan@broadcom.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: James.Bottomley@HansenPartnership.com, michaelc@cs.wisc.edu, netdev@vger.kernel.org, linux-scsi@vger.kernel.org, open-iscsi@googlegroups.com To: mchan@broadcom.com Return-path: In-Reply-To: <1248318115-14214-1-git-send-email-mchan@broadcom.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: "Michael Chan" Date: Wed, 22 Jul 2009 20:01:55 -0700 > When a net device goes down or when the bnx2i driver is unloaded, > the code was not generating the ISCSI_KEVENT_IF_DOWN message > properly and this could cause the userspace driver to crash. > > This is fixed by sending the message properly in the shutdown path. > cnic_uio_stop() is also added to send the message when bnx2i is > unregistering. > > Signed-off-by: Michael Chan Applied.