This defintively looks better than the ERESTARTSYS hack. I think I'll defer the whole blkdev_get refactoring and bd_mutex to open_mutex conversion to the next merge window, so I think we should be fine with this plus the mddev_find split. Reviewed-by: Christoph Hellwig <hch@xxxxxx>