]> git.baikalelectronics.ru Git - kernel.git/commit
mm: hide laptop_mode_wb_timer entirely behind the BDI API
authorChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 14:17:40 +0000 (16:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Aug 2021 17:52:28 +0000 (11:52 -0600)
commit2fced2278ca6d55629a2dd08bd21f4d13ecd33f2
tree0f1db60cbff08e5fe920f13b06aca55c3a8de162
parent0d84492c3632d4a58122147fb78cbdb925f0ea81
mm: hide laptop_mode_wb_timer entirely behind the BDI API

Don't leak the detaŃ–ls of the timer into the block layer, instead
initialize the timer in bdi_alloc and delete it in bdi_unregister.
Note that this means the timer is initialized (but not armed) for
non-block queues as well now.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20210809141744.1203023-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
mm/backing-dev.c
mm/page-writeback.c