mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 21:26:31 +00:00
scst, copy manager: Skip updating if auto CM assignment is disabled
Reported-by: James McCarthy <mccarthy1029@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8504 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2683,6 +2683,10 @@ void scst_cm_update_dev(struct scst_device *dev)
|
||||
|
||||
TRACE_MGMT_DBG("copy manager: updating device %s", dev->virt_name);
|
||||
|
||||
if (!scst_auto_cm_assignment ||
|
||||
!dev->handler->auto_cm_assignment_possible)
|
||||
goto out;
|
||||
|
||||
res = scst_suspend_activity(SCST_SUSPEND_TIMEOUT_UNLIMITED);
|
||||
WARN_ON_ONCE(res);
|
||||
|
||||
@@ -2706,6 +2710,7 @@ out_resume:
|
||||
mutex_unlock(&scst_mutex);
|
||||
scst_resume_activity();
|
||||
|
||||
out:
|
||||
TRACE_EXIT();
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user