• Javier González's avatar
    lightnvm: manage lun partitions internally in mm · 8176117b
    Javier González authored
    LUNs are exclusively owned by targets implementing a block device FTL.
    Doing this reservation requires at the moment a 2-way callback gennvm
    <-> target. The reason behind this is that LUNs were not assumed to
    always be exclusively owned by targets. However, this design decision
    goes against I/O determinism QoS (two targets would mix I/O on the same
    parallel unit in the device).
    
    This patch makes LUN reservation as part of the target creation on the
    media manager. This makes that LUNs are always exclusively owned by the
    target instantiated on top of them. LUN stripping and/or sharing should
    be implemented on the target itself or the layers on top.
    Signed-off-by: default avatarJavier González <javier@cnexlabs.com>
    Signed-off-by: default avatarMatias Bjørling <m@bjorling.me>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    8176117b
rrpc.c 33.7 KB