Thread (42 messages) 42 messages, 7 authors, 2025-11-05

Re: add error handling to add_disk / device_add_disk

From: Luis Chamberlain <mcgrof@kernel.org>
Date: 2021-08-23 19:45:13

On Mon, Aug 23, 2021 at 12:57:41PM -0600, Jens Axboe wrote:
On 8/18/21 8:45 AM, Christoph Hellwig wrote:
quoted
Hi Jens,

this series does some refactoring and then adds support to return errors
from add_disk (rebasing a patch from Luis).  I think that alone is a huge
improvement as it leaves a disk for which add_disk failed in a defined
status, but the real improvement will be actually handling the errors in
the drivers.  This series contains two trivial conversions.  Luis has
a tree with conversions for all drivers in the tree, which will be fed
incrementally once this goes in.  Hopefully we can convert all the
commonly used drivers in this merge window.
Applied, thanks.
Do you have a branch published which has this by any chance? I checked
but can't see anything obvious.

  Luis
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help