akiradeveloper / dm-writeboost

Log-structured Caching for Linux
GNU General Public License v2.0
123 stars 19 forks source link

flush_proc: unnecessary code #136

Closed akiradeveloper closed 8 years ago

akiradeveloper commented 8 years ago

I think we don't need to wait_for_flushing here because it's given in this context.

    /*
     * Deferred ACK for barrier requests
     * To serialize barrier ACK in logging we wait for the previous segment
     * to be persistently written (if needed).
     */
    wait_for_flushing(wb, SUB_ID(seg->id, 1)); // FIXME remove this!
    process_deferred_barriers(wb, job);