def METHOD_NAME(session, host_uuid, sr_uuid, is_sr_master):
    from vhdutil import LOCK_TYPE_SR
    from cleanup import LOCK_TYPE_RUNNING
    cleanup.abort(sr_uuid)
    gc_lock = lock.Lock(LOCK_TYPE_RUNNING, sr_uuid)
    sr_lock = lock.Lock(LOCK_TYPE_SR, sr_uuid)
    gc_lock.acquire()
    sr_lock.acquire()
    sr_ref = session.xenapi.SR.get_by_uuid(sr_uuid)
    host_ref = session.xenapi.host.get_by_uuid(host_uuid)
    host_key = "host_%s" % host_ref
    util.SMlog("RESET for SR %s (master: %s)" % (sr_uuid, is_sr_master))
    vdi_recs = session.xenapi.VDI.get_all_records_where( \
            "field \"SR\" = \"%s\"" % sr_ref)
    for vdi_ref, vdi_rec in vdi_recs.items():
        vdi_uuid = vdi_rec["uuid"]
        sm_config = vdi_rec["sm_config"]
        if sm_config.get(host_key):
            util.SMlog("Clearing attached status for VDI %s" % vdi_uuid)
            session.xenapi.VDI.remove_from_sm_config(vdi_ref, host_key)
        if is_sr_master and sm_config.get("paused"):
            util.SMlog("Clearing paused status for VDI %s" % vdi_uuid)
            session.xenapi.VDI.remove_from_sm_config(vdi_ref, "paused")
    sr_lock.release()
    gc_lock.release()