Skip to content
  • Stefan Hajnoczi's avatar
    qed: replace is_write with flags field · 6e4f59bd
    Stefan Hajnoczi authored
    
    
    Per-request attributes like read/write are currently implemented as bool
    fields in the QEDAIOCB struct.  This becomes unwiedly as the number of
    attributes grows.  For example, the qed_aio_setup() function would have
    to take multiple bool arguments and at call sites it would be hard to
    distinguish the meaning of each bool.
    
    Instead use a flags field with bitmask constants.  This will be used
    when zero write support is added.
    
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    6e4f59bd