mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 13:46:25 +00:00
fcst: Avoid that "rmmod fcst" hangs
Make sure that SCST sessions get unregistered when scst_unregister_target()
is invoked. This change is necessary because of r5083 ("Disable automatic
sessions unregistration").
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5195 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
#include <scsi/fc/fc_els.h>
|
||||
#include "fcst.h"
|
||||
|
||||
static void ft_sess_put(struct ft_sess *sess);
|
||||
|
||||
static int ft_tport_count;
|
||||
|
||||
static ssize_t ft_format_wwn(char *buf, size_t len, u64 wwn)
|
||||
@@ -357,6 +359,7 @@ static void ft_sess_close(struct ft_sess *sess)
|
||||
return;
|
||||
FT_SESS_DBG("port_id %x\n", port_id);
|
||||
ft_sess_unhash(sess);
|
||||
ft_sess_put(sess);
|
||||
/* XXX should send LOGO or PRLO to rport */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user