All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3 0/3] blk-mq: three misc patches
@ 2022-06-16  1:43 Ming Lei
  2022-06-16  1:43 ` [PATCH V3 1/3] blk-mq: protect q->elevator by ->sysfs_lock in blk_mq_elv_switch_none Ming Lei
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Ming Lei @ 2022-06-16  1:43 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Christoph Hellwig, linux-block, Ming Lei

Hello Guys,

The 1st two patches make referring to q->elevator more reliable, and
avoid potential use-after-free on q->elevator in two code paths.

The 3rd patch improves boot time for scsi host with lots of hw queues.

V3:
	- clear QUEUE_FLAG_SQ_SCHED for none & kyber explicitly

V2:
	- follow Christoph's suggestion to set QUEUE_FLAG_SQ_SCHED inside
	mq-deadline and bfq directly


Ming Lei (3):
  blk-mq: protect q->elevator by ->sysfs_lock in blk_mq_elv_switch_none
  blk-mq: avoid to touch q->elevator without any protection
  blk-mq: don't clear flush_rq from tags->rqs[]

 block/bfq-iosched.c    |  3 +++
 block/blk-mq-sched.c   |  1 +
 block/blk-mq.c         | 27 ++++++++-------------------
 block/kyber-iosched.c  |  3 ++-
 block/mq-deadline.c    |  3 +++
 include/linux/blkdev.h |  4 ++--
 6 files changed, 19 insertions(+), 22 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-16 20:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-16  1:43 [PATCH V3 0/3] blk-mq: three misc patches Ming Lei
2022-06-16  1:43 ` [PATCH V3 1/3] blk-mq: protect q->elevator by ->sysfs_lock in blk_mq_elv_switch_none Ming Lei
2022-06-16  1:44 ` [PATCH V3 2/3] blk-mq: avoid to touch q->elevator without any protection Ming Lei
2022-06-16  6:15   ` Christoph Hellwig
2022-06-16  1:44 ` [PATCH V3 3/3] blk-mq: don't clear flush_rq from tags->rqs[] Ming Lei
2022-06-16 20:46 ` [PATCH V3 0/3] blk-mq: three misc patches Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.