All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] blk-mq-sched: fix put_rq_private() lock inconsistency
@ 2017-02-02 16:06 Jens Axboe
  2017-02-02 16:06 ` [PATCH 1/2] blk-merge: return the merged request Jens Axboe
  2017-02-02 16:06 ` [PATCH 2/2] block: free merged request in the caller Jens Axboe
  0 siblings, 2 replies; 6+ messages in thread
From: Jens Axboe @ 2017-02-02 16:06 UTC (permalink / raw)
  To: linux-block; +Cc: paolo.valente, osandov

I tested the patch I sent to Paolo yesterday, and it seems to work
fine. I broke it up into two pieces, so the functional change is
restricted to patch #2.

Basically this fixes the case where we can invoke the blk-mq-sched
put request functions in an inconsistent state. Most of the time we
invoke them without any locks held, but for the case where we get
a successful request-to-request merge on the back of a bio-to-request
merge, we can invoke it with whatever lock the scheduler held when
it called blk_mq_sched_try_merge().

-- 
Jens Axboe


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

end of thread, other threads:[~2017-02-07 17:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-02 16:06 [PATCH 0/2] blk-mq-sched: fix put_rq_private() lock inconsistency Jens Axboe
2017-02-02 16:06 ` [PATCH 1/2] blk-merge: return the merged request Jens Axboe
2017-02-03 16:42   ` Omar Sandoval
2017-02-02 16:06 ` [PATCH 2/2] block: free merged request in the caller Jens Axboe
2017-02-03 16:44   ` Omar Sandoval
2017-02-07 17:35   ` Paolo Valente

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.