Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17177773ybl; Wed, 1 Jan 2020 23:54:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyw/Q0VKv+D560FFIE8mLfCT3qS0+BryBmFsAKkZ1B82BhJchP4SAtASFWn9wpwNEx7UTNc X-Received: by 2002:a05:6830:3048:: with SMTP id p8mr69703671otr.312.1577951676786; Wed, 01 Jan 2020 23:54:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577951676; cv=none; d=google.com; s=arc-20160816; b=qYQFiwv1+lkVG+EdcNwr5Tovy54G56BDnC/O969yfcf/cvFWQEj6h8MRZFMwc07SUI JGoP4O0zuG7HfCTaE4QvrA0CVd1gOZNWp2F0C0QYfzH2STr0/QnocqwTm9iz2NM5NVMQ WJS3h3Ughs/VUz2xtDXhDpgZGRvAJE2+xm/iS0BtSQ11WjjqCl4tziX5FUjr+Nea7J1R 8DRG9ZYG5JJPM13m6xHNGANkPZHzjWmCjz1uGALEHbc7hQggAKE7adw00oU5Ds0hRxy3 WpgrveTs6CE2t5JCXmiwXSb8/rlsgdaeT0LDgMB/449EzGJRaN7Iw8a2y1hIMbs2xOt2 +1xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=x51IhYE1QyMmY3UHAvxQPb23Eyep04ViD2uP480XSao=; b=OAOGW+JGFfVIGVOPacVMwa5UnhmCsKnawvYfb6tCm/ZApsoj4rKeY9wN15N9TlJZP5 OkBVlYoiQkKHC7W6W1v0Z5BSptUayPJQNUDns2bPq6vzZKQ2d6FLw/RglhkjdUz4RHg7 kyl1ZinEgXtOialY5oIPX2XqgfVuREPrR40Ot/fIMrAo41odI37V+frVN5096vxGbZjH kn2/LxzIy/JSs1ncmO7281DzLOp22HAtx+8wLoq6HrGANzBqVJm2UZ8ZdTlWIMlU/mbo rVHC0j1j7hEr3EWJiYgnIZpnxL0unBxELGJNEA3c8I6KWMhABqrLQkUETHo0XTPkp2Zh yMOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=pddTFLYH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t184si26121839oig.184.2020.01.01.23.54.25; Wed, 01 Jan 2020 23:54:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=pddTFLYH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727797AbgABHxg (ORCPT + 99 others); Thu, 2 Jan 2020 02:53:36 -0500 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:13891 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727781AbgABHxf (ORCPT ); Thu, 2 Jan 2020 02:53:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1577951616; x=1609487616; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=x51IhYE1QyMmY3UHAvxQPb23Eyep04ViD2uP480XSao=; b=pddTFLYHv8OvDL5cOTlw+D5UVYQ2nuhETA8VXsShHlEMLzFzyCdKKZ2Y G/CyksK76UQIZKzft3ywUHX863lO03yMdw6LiphOosVa7I5w/fpf+vp4V oShJ6CwpaDO0p+rZ8jFex0XUntpi04kR8qRlrMTIOrAgQ0wNLadlgzVjN 0=; IronPort-SDR: bFnmoTpJxJQMchHcpI9J27Stgt9IouSGesc4w8HXeVrR5wfd4SV+365A1W/FeBqf5BPo8Uu4pc vV0LIyF28eVg== X-IronPort-AV: E=Sophos;i="5.69,385,1571702400"; d="scan'208";a="17779141" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 02 Jan 2020 07:53:30 +0000 Received: from EX13MTAUWC001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com (Postfix) with ESMTPS id D7E14A1DD2; Thu, 2 Jan 2020 07:53:26 +0000 (UTC) Received: from EX13D11UWC004.ant.amazon.com (10.43.162.101) by EX13MTAUWC001.ant.amazon.com (10.43.162.135) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 2 Jan 2020 07:53:25 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX13D11UWC004.ant.amazon.com (10.43.162.101) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 2 Jan 2020 07:53:24 +0000 Received: from localhost (172.23.204.141) by mail-relay.amazon.com (10.43.61.243) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Thu, 2 Jan 2020 07:53:23 +0000 From: Balbir Singh To: , , CC: , , , , , , Balbir Singh Subject: [resend v1 5/5] drivers/scsi/sd.c: Convert to use disk_set_capacity Date: Thu, 2 Jan 2020 07:53:15 +0000 Message-ID: <20200102075315.22652-6-sblbir@amazon.com> X-Mailer: git-send-email 2.16.5 In-Reply-To: <20200102075315.22652-1-sblbir@amazon.com> References: <20200102075315.22652-1-sblbir@amazon.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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