Message ID | 1475715892-18856-5-git-send-email-damien.lemoal@hgst.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 853F96075E for <patchwork-linux-block@patchwork.kernel.org>; Thu, 6 Oct 2016 01:07:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78C9428D71 for <patchwork-linux-block@patchwork.kernel.org>; Thu, 6 Oct 2016 01:07:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D43A28DAA; Thu, 6 Oct 2016 01:07:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6A7828D71 for <patchwork-linux-block@patchwork.kernel.org>; Thu, 6 Oct 2016 01:07:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932366AbcJFBHH (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Wed, 5 Oct 2016 21:07:07 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:42651 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754388AbcJFBHB (ORCPT <rfc822; linux-block@vger.kernel.org>); Wed, 5 Oct 2016 21:07:01 -0400 X-IronPort-AV: E=Sophos;i="5.31,451,1473091200"; d="scan'208";a="20799452" Received: from mail-bn3nam01lp0184.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.184]) by ob1.hgst.iphmx.com with ESMTP; 06 Oct 2016 09:05:16 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-hgst-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=JVPiNgSX48yueC+gVtakbYd+uahniVrHPCjGNm0CkeM=; b=YPnJ01nd+fS5HUssJbhIhurt1lRACjf330Ik9XZQfT+XXS1XfdUS1Pw2Zwip+wIdGvuEz6LnG2n4RGqtXUtqx5do/WxvV+WXmABo7XEgFHsjVl3TP7APK3CsNPUhqkNZIW88a3UZeCYkxIB47+E5vcRxKeO7y++0jcT+gSkJoso= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Damien.LeMoal@hgst.com; Received: from washi.fujisawa.hgst.com (199.255.47.8) by SN1PR04MB1983.namprd04.prod.outlook.com (10.166.69.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Thu, 6 Oct 2016 01:05:13 +0000 From: Damien Le Moal <damien.lemoal@hgst.com> To: Jens Axboe <axboe@kernel.dk> CC: <linux-block@vger.kernel.org>, <linux-scsi@vger.kernel.org>, Christoph Hellwig <hch@lst.de>, "Martin K . Petersen" <martin.petersen@oracle.com>, Hannes Reinecke <hare@suse.de>, Shaun Tancheff <shaun@tancheff.com>, Damien Le Moal <damien.lemoal@hgst.com>, Shaun Tancheff <shaun.tancheff@seagate.com> Subject: [PATCH v7 4/7] block: Define zoned block device operations Date: Thu, 6 Oct 2016 10:04:49 +0900 Message-ID: <1475715892-18856-5-git-send-email-damien.lemoal@hgst.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475715892-18856-1-git-send-email-damien.lemoal@hgst.com> References: <1475715892-18856-1-git-send-email-damien.lemoal@hgst.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [199.255.47.8] X-ClientProxiedBy: SN1PR17CA0065.namprd17.prod.outlook.com (10.163.3.161) To SN1PR04MB1983.namprd04.prod.outlook.com (10.166.69.143) X-MS-Office365-Filtering-Correlation-Id: 8a31c97e-6f55-452a-5afd-08d3ed84d4af X-Microsoft-Exchange-Diagnostics: 1; SN1PR04MB1983; 2:rq9g8jmK8WhB9lSw10eDnqtbTKUBsC4V5o+C9Xtl1qjpryqbmywITClwM9AFCxmHd2YxccnNBnoQnMDAWdqyHVDiwu4th5pVRxfzQmd83JFayR7FIhyXu+J8xvC5g4PKY+GNEwh9N4T4rZHDlBjAx/pPWldY7kwbi5MJq9ohD516wrAK37x1vgLVv5gq2JRp; 3:gD50zqsrlqrb8b2br0eAPeutcewdjbsJkcVIomX/sPlgAHXlaPB/i5Xg+fZb1fje3afJgWZ5JXgkMikWSszRxuhlXCYLMjFTVMlAOdlmh2Fh+yYkdRciwQ00RdeCTgmd; 25:kz9kE/2vKP0aQrR3NoOyMbwLKr5eMHIJHQnxy+Zo6GIC5VGzgBSmvDaXYSrRIrAzgqzU1/OL+OPw5EZ8LoM03JYqslYT9hA129wzYpRkViOCMn7gQfSC2uMLnBFZPqRJFgzxAJxZnTt0A33srUCGq+YZDduliOJGn8yEZZBMY6noskAruX8RTuoOUdtSMoedCmdHaHYJbbxZqxY0ZOPC/bQDcTq1J2/ItLBfuhBYVmJPRbx0JuSG+SG7NcVKfB5SnHN74kj49y8DZnCbUP89bMKyKhO7vkDkGC/0qVYayAtYUh6mC97YtTv19U5r7qgJ4fGEYYHod9RAgKivT0XRm3FrhpqaSWAkP1+VukTw6GC729cZqkgVTgJybh1XfuIN4EUo179gXxl52uW3Bm1qY//woHRUFGyLd9wzWIyiU3k= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR04MB1983; X-Microsoft-Exchange-Diagnostics: 1; SN1PR04MB1983; 31:qKwEUs5CN6L3FGQFXyVsxdIzp0Erkfos8+CdX3GbXOZQLv3/Wu67qpeBhHO89PrfxZCizXLNGwZ5ACSjZauKrU/hvYQKT9ucqbgwQ/NNdMCIJ1ODZIyM8+EW/YFDGGJU3sZt/r4IcJvHDc36Dvboxuv0CCcS6yCrFG83JIuCFJr0jt819HxvP62BkCwr6BF/QIsXRnRYu+BxkqxDVilTrGvATm6oGN4p9k/SX0v8yRcdO9AHNpqJP95IJoCPGVXZ; 20:OPYKjQgp7eGBVIGlxR0Jr0fnT9CYQnEpzSfFhvYRyiWh0Vyl9lXGpQ3Cd0vk2yRAr3Dp85UCaa+s4DrBcY1QJJNJUTzERHF+jCws6+8PEsDkfbX83jFsKvmKvQK4CgG95+m2mE6sPjymvLrGJNu0gZsfccpso2jWFKq88xM8cSkk6tmbdlIB164D/vrA5uBfmIrQGMGcSwKj0oG11XlEL+icYYgqhxzsU5BreWnq0JxvxSQCg4zbcwV2btThysUD6H+dcvdFYw0iwm6doRdILkBEOLPSR7U9B3Y7+ifbAkKypBW34g3D4Jyl7CtRyBiVii7FGopSWAVBK3HTPM3dW/dFMYyuwXVUMo+ZjITzAaV4cUq1z+CdxlNUAhch74DwpLulqeuaPkjV0RXXJE86YIm/zMZTi3cn7h6vi5Js7ZsWcT4ubh/LfdHpiWouLFcDhjnzBTYGrq5wMXhSnLl0nCqdXZ9WPAMcVs/lDEQ5m2+AIkcwzoPDr1nsMdyrQ9o9 X-Microsoft-Antispam-PRVS: <SN1PR04MB198387384F0EEBB37B7F662D9FC70@SN1PR04MB1983.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(79135771888625)(146099531331640); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:SN1PR04MB1983; BCL:0; PCL:0; RULEID:; SRVR:SN1PR04MB1983; X-Microsoft-Exchange-Diagnostics: 1; SN1PR04MB1983; 4:pAe/nlC2C78kuZtHHQkbTJG+HBDFeb0/T03EbzmFiUv3D375igU/LWMwOVCRH1EHE8JHj76+8f0r+3Qmn0Fb10MNTME4QcMda8KZr889J8ie9mnZ5U8XdTDp2DtAsX/Yut2My4FdGgqbavVwMd4CINYmiaOFcTX0YCvj0W3oPv6777e56+G8PMfs7A8YDPUDuevThbLyB/yIsvuh8onGQ2EupCWPXHaFdsyLeak1YjJGzEULwf6xL2GnGcP5wHWgdUO5Sp+kscx/xHFMCyqyBzzbCb6r00J19gzcdN3moicFwgyt44bX6v+KwSGNek5vnIwMN5Nntt8ThlYmU26x7zEtDX2Cng7hSmQfnLjiVRzPuoqzsv97XYrfqOw+WP2hclzc0tdWtBbUr8nl7akLhaec7Gs5zVpzoJ4ydnyZZWjAgqWWlW4z71G8Eo0IgVLmR5ZYjTY1wrQjKYYwX1yjatPuH4Eexq0cC/OgtWUWlKg= X-Forefront-PRVS: 00872B689F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(92566002)(2950100002)(19580395003)(19580405001)(6916009)(97736004)(305945005)(6666003)(7736002)(7846002)(6116002)(3846002)(586003)(229853001)(189998001)(66066001)(5660300001)(33646002)(110136003)(47776003)(86362001)(48376002)(2906002)(76176999)(68736007)(4326007)(5003940100001)(50466002)(42186005)(105586002)(106356001)(77096005)(36756003)(81156014)(81166006)(101416001)(50226002)(50986999)(8676002)(7099028); DIR:OUT; SFP:1102; SCL:1; SRVR:SN1PR04MB1983; H:washi.fujisawa.hgst.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: hgst.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR04MB1983; 23:muxzzMFkC1rPnh9SrJ06fmvrLn8DMbJTj4fKmUc6X?= =?us-ascii?Q?4EpJuqySC0eQ0eK/AoIb5eltHRuH5kMYv/MEa01sC1USmolyb3wfbcYKIhW6?= =?us-ascii?Q?5PpzdG/MoeBErwNlZ4WcuGiqR1NmAsOWrt3JXO4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XiOOtlCkJ4CAODmLmntsXNApPANagYDl0uVHB3 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR04MB1983; 20:uMShGqP2O3A0yKhT1T4rzUINnUdZzgEj9BE7hc0zJNk0HQPbDqM5E+lEB4/BRQL15dhNbgGJSKIVs6KrBOQRsHDGmCVwe03Vhcti+1/c5DldGMrJO4BFXSvl6aMIZ0qhFwL1yP9ZrXPDe0lk30cusZlr7xrqsx4TQFm+dGlVED7wWbUJ/6KT6J6QLJaAbhMCvOoJ73bUwpTUBlguLIPOVxZv/DdgIJX/NmLioz482QZj03nhd8xK4uXJ5E0uYjFO X-OriginatorOrg: hgst.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2016 01:05:13.4217 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR04MB1983 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/block/blk-core.c b/block/blk-core.c index 14d7c07..e4eda5d 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1941,6 +1941,10 @@ generic_make_request_checks(struct bio *bio) case REQ_OP_WRITE_SAME: if (!bdev_write_same(bio->bi_bdev)) goto not_supported; + case REQ_OP_ZONE_REPORT: + case REQ_OP_ZONE_RESET: + if (!bdev_is_zoned(bio->bi_bdev)) + goto not_supported; break; default: break; diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index cd395ec..dd50dce 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -243,6 +243,8 @@ enum req_op { REQ_OP_SECURE_ERASE, /* request to securely erase sectors */ REQ_OP_WRITE_SAME, /* write same block many times */ REQ_OP_FLUSH, /* request for cache flush */ + REQ_OP_ZONE_REPORT, /* Get zone information */ + REQ_OP_ZONE_RESET, /* Reset a zone write pointer */ }; #define REQ_OP_BITS 3