Message ID | 20230629165206.383-1-jack@suse.cz (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A49AEB64DA for <linux-mm@archiver.kernel.org>; Tue, 4 Jul 2023 12:22:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C7C7C280074; Tue, 4 Jul 2023 08:22:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C2BAF280075; Tue, 4 Jul 2023 08:22:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A3050280074; Tue, 4 Jul 2023 08:22:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 8927C90001B for <linux-mm@kvack.org>; Tue, 4 Jul 2023 08:22:30 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 5549FA0A74 for <linux-mm@kvack.org>; Tue, 4 Jul 2023 12:22:30 +0000 (UTC) X-FDA: 80973842460.06.AC10FE7 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by imf28.hostedemail.com (Postfix) with ESMTP id 14C04C0022 for <linux-mm@kvack.org>; Tue, 4 Jul 2023 12:22:26 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=LYS1cAt6; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=Dse69eRR; spf=pass (imf28.hostedemail.com: domain of jack@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=jack@suse.cz; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688473347; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=fmLTdco5SVuopuSHDbZ7fgiCJT9fmPtnstwBD5O0cVs=; b=aNvDywoTLnm3FJ21dBSpTW6sfHQCEKaakiYNas7ImLlLSFYu7RNzSLrXzzK867xMGR8GGN L9u2fjOAp/M1VVlcAJ4EEnL75XeAVJMUV659hi3lJlMdnXcr3JaqfexO6/XpCUCr++jFhK geSv5REqQ9VKQHYJjGKwF3oHsWZ2JIU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688473347; a=rsa-sha256; cv=none; b=J1IJvV1RYtwtwyJN6Z0Q+ZM4fBQ24WpAcfrzkikEm+vITsu0WZ1hX3Ph32BPDYdyeBgFnv OMGNh8W9TZhgg+1sy6hZg+P5BCdrIetOaRWft1VRNcztwO5W1JpqLeAmzNwPMXKwDy8sB9 MvGNFK/KqLmysjxjnOsWeAb4FPFwKyM= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=LYS1cAt6; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=Dse69eRR; spf=pass (imf28.hostedemail.com: domain of jack@suse.cz designates 195.135.220.28 as permitted sender) smtp.mailfrom=jack@suse.cz; dmarc=none Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 37C1422864; Tue, 4 Jul 2023 12:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1688473345; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fmLTdco5SVuopuSHDbZ7fgiCJT9fmPtnstwBD5O0cVs=; b=LYS1cAt6t7JDeaXCZA2GfkFsvePsCKrBv683wLJKbeQdnB0RB5kex3lpjPlaO0WNrRIj/p OKov+tjGtn08tmzrJU88unG7OZdlwokmKgdGkl+OG4epxE3GA77hqhJZhG3Z0dN3YI1cPw 0UrvrW8qrgzkAVKwdQJPDUFGAz/meEU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1688473345; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=fmLTdco5SVuopuSHDbZ7fgiCJT9fmPtnstwBD5O0cVs=; b=Dse69eRRr1j+O/QtQVzrTyIAnqxKgXzcDp3QAv4KDKTfaZG4HjcsXtXKNaEGDfzmeYyIxx WQrcOQN123NhV6Dg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1D4941346D; Tue, 4 Jul 2023 12:22:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id j8gfBwEPpGQFMAAAMHmgww (envelope-from <jack@suse.cz>); Tue, 04 Jul 2023 12:22:25 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 915DAA0722; Tue, 4 Jul 2023 14:22:24 +0200 (CEST) From: Jan Kara <jack@suse.cz> To: <linux-block@vger.kernel.org> Cc: <linux-fsdevel@vger.kernel.org>, Jens Axboe <axboe@kernel.dk>, Christoph Hellwig <hch@infradead.org>, Jan Kara <jack@suse.cz>, Alasdair Kergon <agk@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, Anna Schumaker <anna@kernel.org>, Chao Yu <chao@kernel.org>, Christian Borntraeger <borntraeger@linux.ibm.com>, "Darrick J. Wong" <djwong@kernel.org>, Dave Kleikamp <shaggy@kernel.org>, David Sterba <dsterba@suse.com>, dm-devel@redhat.com, drbd-dev@lists.linbit.com, Gao Xiang <xiang@kernel.org>, Jack Wang <jinpu.wang@ionos.com>, Jaegeuk Kim <jaegeuk@kernel.org>, jfs-discussion@lists.sourceforge.net, Joern Engel <joern@lazybastard.org>, Joseph Qi <joseph.qi@linux.alibaba.com>, Kent Overstreet <kent.overstreet@gmail.com>, linux-bcache@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-mm@kvack.org, linux-mtd@lists.infradead.org, linux-nfs@vger.kernel.org, linux-nilfs@vger.kernel.org, linux-nvme@lists.infradead.org, linux-pm@vger.kernel.org, linux-raid@vger.kernel.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, linux-xfs@vger.kernel.org, "Md. Haris Iqbal" <haris.iqbal@ionos.com>, Mike Snitzer <snitzer@kernel.org>, Minchan Kim <minchan@kernel.org>, ocfs2-devel@oss.oracle.com, reiserfs-devel@vger.kernel.org, Sergey Senozhatsky <senozhatsky@chromium.org>, Song Liu <song@kernel.org>, Sven Schnelle <svens@linux.ibm.com>, target-devel@vger.kernel.org, Ted Tso <tytso@mit.edu>, Trond Myklebust <trond.myklebust@hammerspace.com>, xen-devel@lists.xenproject.org Subject: [PATCH RFC 0/32] block: Make blkdev_get_by_*() return handle Date: Tue, 4 Jul 2023 14:21:27 +0200 Message-Id: <20230629165206.383-1-jack@suse.cz> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2471; i=jack@suse.cz; h=from:subject:message-id; bh=ceZQTtdZjpsFiBb9Fva7YX0lOa2i6Zx53n9hl/3+KQM=; b=owEBbQGS/pANAwAIAZydqgc/ZEDZAcsmYgBkpA7DYrlV/5vfqjK0juEsCaKDoUZ39z4YDWexB9PO aQyP7ZaJATMEAAEIAB0WIQSrWdEr1p4yirVVKBycnaoHP2RA2QUCZKQOwwAKCRCcnaoHP2RA2S48B/ 476l3pggtn8igKmRoHswxXv63Ks68g/08HDzIZqCtDPA84BSKd93Nq0m/Wn76G+ubHQpfg8PMw5+DG uV+DOTR+NEYKAToQQ8YzmS6RAGasKKWUg3k1pr7jK23l+wcq16ImmBXmWM3nr2j85QcDZeB+vpUKHh bdQJQsBOqKsA+qlImgVwvMS+V4UTLQcIYQo2bDBl0TIbJB0UiXYMYHcvrEkwNZWybXBs+wfERrXuF1 XlXO6rWvLyW94kkpvaZTvPY+yZd7tOLd+W8gsz2uBFG9QJg57aDkZxf6NA+Qxf2O8uwfWiyb1XXBN8 I1wYA/sSduibCw4tF4sYb/wERvIAO+ X-Developer-Key: i=jack@suse.cz; a=openpgp; fpr=93C6099A142276A28BBE35D815BC833443038D8C Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 14C04C0022 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: dfq4m6nzjmezcr9n9kgg1hj1ri4zppjz X-HE-Tag: 1688473346-559832 X-HE-Meta: U2FsdGVkX193zy0Ufa0wsyYv+sAmoNfPyWX+NKsBiN66MlCLKrpol6zdadTXdHWwPjBS1MIncGw/q00KMMJTH5gSSZy6KpuCLZaCKk0tX72an3fy4sr5lzkdnEDvT89jm8mvQR8Vb8DOGtH0NvofeXlWPPopIiIOQK8wHzZdwaSlAjXxUF15M8yoo7/zyVCYjbLST7dm0OI1DplJanD0wMFix2H/WwVjKShDYEWdUM6nfUltZAxG5wMh9qhN2yMP7eLxwR4RGhzUOhLBRZjeV59LmwB0teVf4Sah0V4gNS+q5yqOiLfON+K2Roj8ZNX7u3UZKZ7HXuLc0Y8aj/s3IA9lPLuKGuO52NQJDI/yo1Xe+95FzkQ931WuZO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35KbQBAUKYo7s1ri1zGrdF41C5r/yK+9SWNraACyJEVsMZydEOHq/d5tUoq4u99CcrzxfbUA2ki/Lea9C8Ix25FPBcRYs5ExPN1XnVFzlqjo+muYqZf+FbdMKEtDHA3E9EENUwE2oHttOgEywn/+xc0Nf8XlY9kA/+oEYXYGecpLQaO7kg5kc9CrFqH3Cw2rtV4UcnMPAfAmKJ7GWejvX77ck8maG6LmUVvV/sF1ZDqJ20ahjY2XbqsrRdOEdUbmbh8FkT3rstCfdpSKOcgcdG4eZcvz2pWcR0/ktNrHKw7JdqIMURBfRbdmXfD7NkFaDTZexu1CWNnjZH/MNYOwINWWTMTqWgNJydWkxwrvSmrBoQ0WcUVTi55etzhZ+gGf/T5ce4reEIu1hc7WmKAuCQSWJXq3uTASXZK3cwPCEwBBOandFkABoDWYnvAWJpor1xw7NdZMjNcC8AFwPdocxZWbrDgA/ggtRaJK0XS63IEQJYQGD1PgimNpgWqIva28GivAsKqCBMVAxPh5tVCsp2vqUP0o u8Zvlbro bzS690oYMpEDngh4BjwvMNaqwuNF0r/P9rOQ93Rf7a6z385d483DY1q9mxrxrq8RFAWkNe3A0DNDu/asTBST/qQS+USVFhjDZLHT06JlZxy3daT2Nmsub0gBQcEtUgu+anuYR4npR1pUraSGNays/u4wghIXJ+3Lq+PLIqBIlrY= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
block: Make blkdev_get_by_*() return handle
|
expand
|
On Tue, Jul 04, 2023 at 02:21:27PM +0200, Jan Kara wrote: > Hello, > > this patch series implements the idea of blkdev_get_by_*() calls returning > bdev_handle which is then passed to blkdev_put() [1]. This makes the get > and put calls for bdevs more obviously matching and allows us to propagate > context from get to put without having to modify all the users (again!). > In particular I need to propagate used open flags to blkdev_put() to be able > count writeable opens and add support for blocking writes to mounted block > devices. I'll send that series separately. > > The series is based on Linus' tree as of yesterday + two bcache fixes which are > in the block tree. Patches have passed some basic testing, I plan to test more > users once we agree this is the right way to go. Can you post a link to a git branch for this and the follow up series? Especially with a fairly unstable base it's kinda hard to look at the result otherwise.