Files
scst/iscsi-scst/kernel/isert-scst
Yan Burman e900e70a06 isert: Fix race between target_del_all() and iscsit_unregister_transport()
When iscsi-scstd exits for some reason, release on character device ctr_name is called.
The release function of this character device calls target_del_all().
In order to avoid a scenario where isert-scst is being removed at the same time
as iscsi-scstd is closing ctr_name device, increment reference count in portal creation
so that the module will not disappear before target_del_all() finishes using it.

This scenario is only relevant for isert-scst, as iscsi-scst will have positive reference count
at least untill target_del_all() finishes due to __fput() being called only after the release
method of the character device has returned.

Signed-off-by: Yan Burman <yanb@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5327 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2014-03-13 14:48:33 +00:00
..
2014-01-28 05:12:15 +00:00
2014-01-28 05:12:15 +00:00
2014-01-28 05:12:15 +00:00
2014-02-27 06:30:26 +00:00
2014-01-29 00:07:14 +00:00
2014-02-27 06:30:26 +00:00
2014-01-28 05:12:15 +00:00
2014-02-04 11:46:52 +00:00