Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13544776pxu; Sun, 3 Jan 2021 19:36:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyV1HCe55SqGFG75yEOcQkQmgAepCZOPeFrDKcSQMu/lRhZ4Y/EwmGjSRavD76QYxDWyaSV X-Received: by 2002:a17:907:3f9e:: with SMTP id hr30mr64356860ejc.258.1609731411552; Sun, 03 Jan 2021 19:36:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1609731411; cv=pass; d=google.com; s=arc-20160816; b=g8AeimXmMfXasEuWk4o6BbE1lI9pRTwAijhRR+FEkWeXesisMLFDUAkTelsOeH1PSs o+Xx0HNLvHvO8T5cvcweSIq8vpSQSjwVhVtQPnZojrb465xdkaFLn8SmrzGMRZEuFTVr Fk3H7wo1Ab/bCTSFRnvud+e8T4l6cMFOvxmZSbk163rzP8S8nFLEjGWZycemPoCu/g7x hq38ccCtiuH5Vch+N9qnI9W88CnegtGeHZFhyCcgdfSZUc1d4q3Kd4uGXo5uQAmTffGB D744gF4YEad6M4Ew7BFu15n97WGrTWujbLyxCUl4GCFd5iYveLexVYuDIIGE89KlksRt NFXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :wdcipoutbound:content-language:accept-language:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:ironport-sdr:dkim-signature; bh=fuJ5JgMJwn2FshfsGC4Q7qdZichJ+v/Gb1m0xDEshzo=; b=0pEQZlQ1JbYCGE2FjI1oFHFUKhxvCIz5hbY7op/ZKlYfXc4aN50drpj6usdAoI5mJC 5nW5RmoyUL3VPqHvz/v7J6NTlROZrK8UEsXeXUbd3tEYO0arcRNJV2NFPI1MSsnlFbqZ qeMEVJ2hqnPuSlaPwkki4QLzwUwsZPnBPqwrdQF6OX8awyc80lIA/9dIUzLuD7K4lJKq NBjWZDSHtd8UxUmy4Uh7tdqPye/2pn4Bs2nCUZVJoZVzSVNGKskvIcH19Pl9iyMCdqYC jx04uHsH+rcSinh843Pl767/tg/mHMBKfWz6cEH/LS5d4/9LE77BFzxmaexu0kGcJK4g DrxQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=oBEiu1ve; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=Sjweh5up; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u22si30260369edx.500.2021.01.03.19.36.28; Sun, 03 Jan 2021 19:36:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=oBEiu1ve; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=Sjweh5up; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727608AbhADBDX (ORCPT + 99 others); Sun, 3 Jan 2021 20:03:23 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:37363 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727557AbhADBDW (ORCPT ); Sun, 3 Jan 2021 20:03:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1609722201; x=1641258201; h=from:to:cc:subject:date:message-id:references: content-transfer-encoding:mime-version; bh=65KAgby0RQj0nZrGAxNKyGQ2CA3hkTGh3a6LDgyTw8w=; b=oBEiu1veKTsj+9odRiIAwO0UR4kCeJJFdvz9wNaz9hEFpLi6ytV7WMu1 NvQwOZUBEs8+1ZpWafgmglq06FsUknAqZR225pbdZfDBRwHa9A71xzOBR 25n61W6TP6OKMjF4E6rGX6XdFIbsv38iviQcNFqZwceq6ikVZ4OWe6EKD Nu6IPcPpiOfxv0EOr1gra+AVMdvVu2FncuCbEe5o0Vvi1TNBlgf+JyPcI aMt9fx7HPQ+2j7DLt7baoNOFOHXDOkmmgbN8ll7svAP3ahULNcWD8B0Ev ffOOdJq8t2B40tM9PHilt28zoQ/a9IJef+922/Sa5XJSyyoNrTDccJ3R4 Q==; IronPort-SDR: cuBVYjV8Wn3otuVpHAqSrRUjysADjC58NyYFuN9iuWmSRgHYk1tQOYhRrq2D9SMvDxffci0JLP zaAhltQ3+Nq6mX89AYxcn9zXXKdVQNVzgYO1UNv7om9Zvzpi2cY1MF8aKIUT+xKWMPKjHlAxua +BHRVHVSMLWoiukum3o5wdqJv1Yn4DQahOSXEQ35eQ3oYR57PeKjaxoDTnJfdPan0hFE+924j5 WkmZ2R22BqVIM6y/oXouDxuyWTX8Nynfv0GiigQX5SZk0QDHDQDf6gDA3KH7hAIdhXAHZToMkv wMc= X-IronPort-AV: E=Sophos;i="5.78,472,1599494400"; d="scan'208";a="156468935" Received: from mail-mw2nam10lp2103.outbound.protection.outlook.com (HELO NAM10-MW2-obe.outbound.protection.outlook.com) ([104.47.55.103]) by ob1.hgst.iphmx.com with ESMTP; 04 Jan 2021 09:02:15 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mRH2aU7R7LFujP8xYo9l3oa6WLUpJr1Qyb7GRnk9mp1/N8Wd4zEB4jEwzw9LQX/tJrlOzhV2+4JhjjimT0aTiGpwIeXNlTuRx+cfyoQ0IgloZ10GqDCxqjtxtJY1F0ZDW3UNQtcyxRDP79+TK7w2G7CnQW9v81pqdnf0TSwNqra/oxczEjbMaCxkS9pCy8P8kANs6WM+536OgtsJ2QGi+t5L7RZmRqABNgsQI37P6F1/BEyDLot1l03Hu2hFNnr7Brm+axyn3dFOJIi84pzGeVRcePo5LvqCJa48a289YZuECjSTLOfEjlVwxV0dFYojB9GJ13mcS0psZOuJ3Kg9Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fuJ5JgMJwn2FshfsGC4Q7qdZichJ+v/Gb1m0xDEshzo=; b=dvSGiT5J5saHxE0CX5tFh5sB/S8ewHdjidevLWUnUuXK3Ce8k0MwCIFYHY7rygYez1PsMrf41OAWoKWvSiA30L8TjjxK/uuTLXCQxglru7fsB+yh5/+Zpr72T+c0RS8Mjmu0BLXpJYueuXJDqINhmXU3LrH+sFWxGVtaq+7Z4bx1L0UXu0KOl+BW+5HLSKa6Z91rucE51WQnoIoMf1doEbWrswa7CzUGgm3ADOfpP7FnbBpaYN+yUWQv2gSKzcuaWCqPDKEILGOn+DZEgz6EQAGKemvl1w01eV+5qoMpB1xLh6vLjhIKfRGoDRaZu7eCiR2icOOOjsQNoKfM5Ezp7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fuJ5JgMJwn2FshfsGC4Q7qdZichJ+v/Gb1m0xDEshzo=; b=Sjweh5upK67p6NmzIS65Onlb6n9CEncgxma78qiSeuDSriVWM7TADv4w4r6+7WvQMvCty6iJ0gKcaJwdz/lWO48BTTczmuKheXelCaPStRdXurdAb/np1B6AILRofeZK7gA+MyUDPnDjMO1Mc6tHDq4if3eM+GNa1GpWiUekDXQ= Received: from BYAPR04MB4965.namprd04.prod.outlook.com (2603:10b6:a03:4d::25) by SJ0PR04MB7438.namprd04.prod.outlook.com (2603:10b6:a03:2a0::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.20; Mon, 4 Jan 2021 01:02:14 +0000 Received: from BYAPR04MB4965.namprd04.prod.outlook.com ([fe80::716c:4e0c:c6d1:298a]) by BYAPR04MB4965.namprd04.prod.outlook.com ([fe80::716c:4e0c:c6d1:298a%6]) with mapi id 15.20.3721.024; Mon, 4 Jan 2021 01:02:14 +0000 From: Chaitanya Kulkarni To: Minwoo Im , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" CC: Jens Axboe , Alexander Viro , Christoph Hellwig Subject: Re: [RFC V2] block: reject I/O for same fd if block size changed Thread-Topic: [RFC V2] block: reject I/O for same fd if block size changed Thread-Index: AQHW3sVYE0D3BnsJEkakKhpEGYvfNw== Date: Mon, 4 Jan 2021 01:02:14 +0000 Message-ID: References: <20201230160129.23731-1-minwoo.im.dev@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=wdc.com; x-originating-ip: [199.255.45.62] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 18e304b5-21cf-4bdf-84a3-08d8b04c5fe4 x-ms-traffictypediagnostic: SJ0PR04MB7438: x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:4125; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hgvasGyI3Zu7n7n9OPxm93Do7HDLZCOqwOSjzqMHs4p2sKba8YIE+PTmlwEQUDslUD7Rc9aiU9qkB9HBU4pipF9DfX/+ZRQcfEldn+SIUCr0+w+C0sUeA0vhOOO4q2HXshBcgLvcHt/6VhYOjg8QcgEDBIFvxBsqaS1PBtRAnnJs9egPeM+Z6HI68yE8wWCNQr2iwkpHnDah/Gr0Rw6aJ5zwJkYrU3z3KYbYMIGjEBqNPda7WjI0jygwQlosRngIEw36XX2PxyC56pUJ0c3FdnZf1ONTaPvXFrNRM8IgAK56VTzpXOTogeh8y7tOX/JcwCnzMBPTS026pi+tjBbZ70UVEmKLil4S3oPgNf/+MliWiO9umEX0cijZR3kmjT4HRK99OpE8DXdHFc/YzqmRuA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR04MB4965.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39850400004)(136003)(376002)(396003)(346002)(366004)(7696005)(110136005)(26005)(5660300002)(54906003)(478600001)(4744005)(8676002)(71200400001)(186003)(86362001)(4326008)(9686003)(76116006)(66946007)(55016002)(33656002)(8936002)(2906002)(53546011)(6506007)(83380400001)(316002)(66476007)(52536014)(66556008)(64756008)(66446008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?1AV4OGN7I0ScJPd2urX1KEqOvLvOb1ZkoR+zZyFJcZyySKobuEb+tz7ydeH9?= =?us-ascii?Q?PSiDZNiMK8a7XC1tkm53QPGwConP1aVG3m6G1qvKQHNEyRMOuJbwMz1YPEv8?= =?us-ascii?Q?jHf0ApCFJwzTwj4pTPDw9WllpxOqbMHI4nuUFui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Q?h9xJ?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR04MB4965.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 18e304b5-21cf-4bdf-84a3-08d8b04c5fe4 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jan 2021 01:02:14.5120 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JTtS8wxXi2B1Vbmk7sMOH77IZffiQh/Ltg+rjIY+nSQLZtlGBD6Xh1qqUgRWGh/nUNEV+KVa8UTknWJp61m9zF1JYKfv/wU6NzCfcn88eWk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR04MB7438 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/30/20 08:03, Minwoo Im wrote:=0A= > =0A= > diff --git a/block/genhd.c b/block/genhd.c=0A= > index 73faec438e49..c3a73cba7c88 100644=0A= > --- a/block/genhd.c=0A= > +++ b/block/genhd.c=0A= > @@ -81,6 +81,7 @@ bool set_capacity_and_notify(struct gendisk *disk, sect= or_t size)=0A= > */=0A= > if (!capacity || !size)=0A= > return false;=0A= > +=0A= > kobject_uevent_env(&disk_to_dev(disk)->kobj, KOBJ_CHANGE, envp);=0A= > return true;=0A= > }=0A= Avoid adding extra newlines in the patch, remove above extra line in v3.=0A=