]> git.baikalelectronics.ru Git - kernel.git/commit
block: Remove unused blk_pm_*() function definitions
authorBart Van Assche <bvanassche@acm.org>
Mon, 22 Feb 2021 02:28:05 +0000 (18:28 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Feb 2021 13:33:48 +0000 (06:33 -0700)
commit7e40c56039abb7c797c25c986008415b5ac6b7f6
tree528e01ade4126faf057546ca927403b2d8fafc31
parent1cc7b20aebfefc735399a6a232b6f7f3cb3b61f5
block: Remove unused blk_pm_*() function definitions

Commit b6b886999319 ("block: remove dead elevator code") removed the last
callers of blk_pm_requeue_request(), blk_pm_add_request() and
blk_pm_put_request(). Hence remove the definitions of these functions.
Removing these functions removes all users of the struct request nr_pending
member. Hence also remove 'nr_pending'. Note: 'nr_pending' is no longer
used since commit 4609d72add02 ("block: Make blk_get_request() block for
non-PM requests while suspended").

Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-pm.h
include/linux/blkdev.h