[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200102075315.22652-6-sblbir@amazon.com>
Date: Thu, 2 Jan 2020 07:53:15 +0000
From: Balbir Singh <sblbir@...zon.com>
To: <linux-kernel@...r.kernel.org>, <linux-block@...r.kernel.org>,
<linux-nvme@...ts.infradead.org>
CC: <axboe@...nel.dk>, <ssomesh@...zon.com>, <jejb@...ux.ibm.com>,
<hch@....de>, <mst@...hat.com>, <Chaitanya.Kulkarni@....com>,
Balbir Singh <sblbir@...zon.com>
Subject: [resend v1 5/5] drivers/scsi/sd.c: Convert to use disk_set_capacity
block/genhd provides disk_set_capacity() for sending
RESIZE notifications via uevents. This notification is
newly added to scsi sd.
Signed-off-by: Balbir Singh <sblbir@...zon.com>
---
drivers/scsi/sd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 5afb0046b12a..1a3be30b6b78 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -3184,7 +3184,7 @@ static int sd_revalidate_disk(struct gendisk *disk)
sdkp->first_scan = 0;
- set_capacity(disk, logical_to_sectors(sdp, sdkp->capacity));
+ disk_set_capacity(disk, logical_to_sectors(sdp, sdkp->capacity));
sd_config_write_same(sdkp);
kfree(buffer);
--
2.16.5
Powered by blists - more mailing lists