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:
Bart Van Assche
2014-01-16 15:22:00 +00:00
parent 0e99ba02b5
commit 6d7fb6343d
+3
View File
@@ -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 */
}