scst: Make access control group removal behavior configurable

SCST rejects removal of an access control group with one or more
sessions with error code -EBUSY. Make it easy to change this
behavior into forcibly closing sessions when an access control
group is removed.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5608 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2014-06-17 00:50:46 +00:00
parent 732ce5ca89
commit 12c4e0fe0a
7 changed files with 171 additions and 49 deletions
+3
View File
@@ -2817,6 +2817,9 @@ struct scst_acg_dev {
* control information.
*/
struct scst_acg {
/* One more than the number of sessions in acg_sess_list */
struct kref acg_kref;
/* Owner target */
struct scst_tgt *tgt;