lkml.org 
[lkml]   [2020]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC v1 0/6] block: add error handling for *add_disk*()
Date
While working on some blktrace races I noticed that we don't do
error handling on *add_disk*() and friends. This is my initial
work on that.

This is based on linux-next tag next-20200428, you can also get this
on my branch 20200428-block-fixes [0].

Let me know what you think.

[0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/log/?h=20200428-blktrace-fixes

Luis Chamberlain (6):
block: refcount the request_queue early in __device_add_disk()
block: move disk announce work from register_disk() to a helper
block: move disk invalidation from del_gendisk() into a helper
block: move disk unregistration work from del_gendisk() to a helper
block: add initial error handling for *add_disk()* and friends
loop: add error handling support for add_disk()

block/blk-integrity.c | 13 +-
block/blk-sysfs.c | 7 +-
block/blk.h | 5 +-
block/genhd.c | 366 +++++++++++++++++++++++++++---------------
drivers/block/loop.c | 7 +-
include/linux/genhd.h | 16 +-
6 files changed, 265 insertions(+), 149 deletions(-)

--
2.25.1

\
 
 \ /
  Last update: 2020-04-29 09:49    [W:0.505 / U:1.784 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site