block: introduce blk_init_flush and its pair
These two temporary functions are introduced for holding flush initialization and de-initialization, so that we can introduce 'flush queue' easier in the following patch. And once 'flush queue' and its allocation/free functions are ready, they will be removed for sake of code readability. Reviewed-by:Christoph Hellwig <hch@lst.de> Signed-off-by:
Ming Lei <ming.lei@canonical.com> Signed-off-by:
Jens Axboe <axboe@fb.com>
Showing
- block/blk-core.c 2 additions, 3 deletionsblock/blk-core.c
- block/blk-flush.c 18 additions, 1 deletionblock/blk-flush.c
- block/blk-mq.c 1 addition, 1 deletionblock/blk-mq.c
- block/blk-mq.h 0 additions, 1 deletionblock/blk-mq.h
- block/blk-sysfs.c 2 additions, 2 deletionsblock/blk-sysfs.c
- block/blk.h 3 additions, 0 deletionsblock/blk.h
Loading
Please register or sign in to comment