]> git.baikalelectronics.ru Git - kernel.git/commit
blk-ioprio: Remove unneeded field
authorJan Kara <jack@suse.cz>
Thu, 23 Jun 2022 07:48:31 +0000 (09:48 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 27 Jun 2022 12:29:12 +0000 (06:29 -0600)
commit4b8fe0ec199d3c117dc6411bfe9dc121a10ab815
treec1ca6f870e5ff49b05b1f35fd171f4c44d235572
parent280b399ce8158609ef43ba269bdde988af9604b8
blk-ioprio: Remove unneeded field

blkcg->ioprio_set field is not really useful except for avoiding
possibly more expensive checks inside blkcg_ioprio_track(). The check
for blkcg->prio_policy being equal to POLICY_NO_CHANGE does the same
service so just remove the ioprio_set field and replace the check.

Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220623074840.5960-6-jack@suse.cz
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-ioprio.c