Skip to content
  • Jan Kiszka's avatar
    chardev: Use timer instead of bottom-half to postpone open event · ac4119c0
    Jan Kiszka authored
    
    
    As the block layer may decide to flush bottom-halfs while the machine is
    still initializing (e.g. to read geometry data from the disk), our
    postponed open event may be processed before the last frontend
    registered with a muxed chardev.
    
    Until the semantics of BHs have been clarified, use an expired timer to
    achieve the same effect (suggested by Paolo Bonzini). This requires to
    perform the alarm timer initialization earlier as otherwise timer
    subsystem can be used before being ready.
    
    Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
    ac4119c0