linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sort out the lock order in the loop driver
@ 2021-08-18  6:24 Christoph Hellwig
  2021-08-18  6:24 ` [PATCH 1/7] loop: remove the ->ioctl method in loop_func_table Christoph Hellwig
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Christoph Hellwig @ 2021-08-18  6:24 UTC (permalink / raw)
  To: Jens Axboe
  Cc: Hillf Danton, Tetsuo Handa, Pavel Tatashin,
	Reviewed-by : Tyler Hicks, linux-block

Hi Jens,

this series sorts out lock order reversals involving the block layer
open_mutex by drastically reducing the scope of loop_ctl_mutex.  To do
so it first merges the cryptoloop module into the main loop driver
as the unregistrtion of transfers on live loop devices was causing
some nasty locking interactions.

Diffstat:
 b/drivers/block/Kconfig    |    6 
 b/drivers/block/Makefile   |    1 
 b/drivers/block/loop.c     |  327 ++++++++++++++++++++++++---------------------
 b/drivers/block/loop.h     |   30 ----
 drivers/block/cryptoloop.c |  204 ----------------------------
 5 files changed, 188 insertions(+), 380 deletions(-)

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

end of thread, other threads:[~2021-08-18 10:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18  6:24 sort out the lock order in the loop driver Christoph Hellwig
2021-08-18  6:24 ` [PATCH 1/7] loop: remove the ->ioctl method in loop_func_table Christoph Hellwig
2021-08-18  6:24 ` [PATCH 2/7] loop: return void from the ->release " Christoph Hellwig
2021-08-18  6:24 ` [PATCH 3/7] loop: merge the cryptoloop module into the main loop module Christoph Hellwig
2021-08-18  6:24 ` [PATCH 4/7] loop: devirtualize transfer transformations Christoph Hellwig
2021-08-18  6:24 ` [PATCH 5/7] loop: remove the unused idx argument to loop_control_get_free Christoph Hellwig
2021-08-18  6:24 ` [PATCH 6/7] loop: move loop device deletion out of loop_ctl_mutex Christoph Hellwig
2021-08-18  6:24 ` [PATCH 7/7] loop: avoid holding loop_ctl_mutex over add_disk Christoph Hellwig
2021-08-18 10:08 ` sort out the lock order in the loop driver Tetsuo Handa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).