* [PATCH for-5.13/drivers] block: remove the -ERESTARTSYS handling in blkdev_get_by_dev
@ 2021-04-12 8:03 Christoph Hellwig
2021-04-12 12:55 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2021-04-12 8:03 UTC (permalink / raw)
To: axboe; +Cc: linux-block
Now that md has been cleaned up we can get rid of this hack.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
fs/block_dev.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/fs/block_dev.c b/fs/block_dev.c
index ae16054cb08c6d..d726d20ffd22ce 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -1436,10 +1436,6 @@ struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder)
if (ret)
return ERR_PTR(ret);
- /*
- * If we lost a race with 'disk' being deleted, try again. See md.c.
- */
-retry:
bdev = blkdev_get_no_open(dev);
if (!bdev)
return ERR_PTR(-ENXIO);
@@ -1486,8 +1482,6 @@ struct block_device *blkdev_get_by_dev(dev_t dev, fmode_t mode, void *holder)
disk_unblock_events(disk);
put_blkdev:
blkdev_put_no_open(bdev);
- if (ret == -ERESTARTSYS)
- goto retry;
return ERR_PTR(ret);
}
EXPORT_SYMBOL(blkdev_get_by_dev);
--
2.30.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH for-5.13/drivers] block: remove the -ERESTARTSYS handling in blkdev_get_by_dev
2021-04-12 8:03 [PATCH for-5.13/drivers] block: remove the -ERESTARTSYS handling in blkdev_get_by_dev Christoph Hellwig
@ 2021-04-12 12:55 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2021-04-12 12:55 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-block
On 4/12/21 2:03 AM, Christoph Hellwig wrote:
> Now that md has been cleaned up we can get rid of this hack.
Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-12 12:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12 8:03 [PATCH for-5.13/drivers] block: remove the -ERESTARTSYS handling in blkdev_get_by_dev Christoph Hellwig
2021-04-12 12:55 ` Jens Axboe
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.