This is a note to let you know that I've just added the patch titled elevator: remove redundant code in elv_unregister_queue() to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: elevator-remove-redundant-code-in-elv_unregister_que.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit efa75e7a472dd9a1c9519c1cf50e37d2b5d3ca47 Author: Yu Kuai <yukuai3@xxxxxxxxxx> Date: Wed Oct 19 20:15:13 2022 +0800 elevator: remove redundant code in elv_unregister_queue() [ Upstream commit 6d9f4cf125585ebf0718abcf5ce9ca898877c6d2 ] "elevator_queue *e" is already declared and initialized in the beginning of elv_unregister_queue(). Signed-off-by: Yu Kuai <yukuai3@xxxxxxxxxx> Reviewed-by: Christoph Hellwig <hch@xxxxxx> Reviewed-by: Eric Biggers <ebiggers@xxxxxxxxxx> Link: https://lore.kernel.org/r/20221019121518.3865235-2-yukuai1@xxxxxxxxxxxxxxx Signed-off-by: Jens Axboe <axboe@xxxxxxxxx> Stable-dep-of: f814bdda774c ("blk-wbt: Fix detection of dirty-throttled tasks") Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/block/elevator.c b/block/elevator.c index bd71f0fc4e4b6..20e70fd3f77f9 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -524,8 +524,6 @@ void elv_unregister_queue(struct request_queue *q) lockdep_assert_held(&q->sysfs_lock); if (e && e->registered) { - struct elevator_queue *e = q->elevator; - kobject_uevent(&e->kobj, KOBJ_REMOVE); kobject_del(&e->kobj);