From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B013C46CD2 for ; Wed, 24 Jan 2024 06:11:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=o2lr2QbuZmq3xr/8lS4baALtoR+HyKurF5geBOY4D50=; b=QGnUnv2vem7G7/LZUWEwfN95xC dzJLsyC7kMtRgYQ9QWGsTNbkE6x823thdCJVBaAy6ozr0tgGCRSjPPtvGONd85AJw+CBe1Mu8z/EQ 5w/6ZHnEz26wVYd86q6OpAkLRhWpU7bo3er4tcifxynucgH0366oI++Jdbpe/ch0eg+wSyPesO0WG gMLq5uYvMJj9QUyYCOiLb/yglSSU8n2MuE6z22oXjkBoSJzv69AZL9FSaEczdbjguEdm5mPGZCXqQ 9WtVVRcgt3HTXlPuAwU54lhypXsbQEYkYSq3cdJwa1Exd5chSHk1RUs4o7FsReqY7bPCCpu4PqIat /1ebSApQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSWTY-001gcU-1d; Wed, 24 Jan 2024 06:11:04 +0000 Received: from smtp-out2.suse.de ([2a07:de40:b251:101:10:150:64:2]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSWTU-001gaj-0e for linux-nvme@lists.infradead.org; Wed, 24 Jan 2024 06:11:02 +0000 Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B2BBA1F7DA; Wed, 24 Jan 2024 06:10:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1706076658; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o2lr2QbuZmq3xr/8lS4baALtoR+HyKurF5geBOY4D50=; b=u8utl9dcTSZd+HuKeZk3L64RSLPW++BPZvzlfM2NpygMgNX65So1TwJuXKu8Cc3MVOVoZ5 pYy0/u8u2ZwUuW4Tc38DbQyLTLjhC+47BASVfqHeWhF9BPj1pMBMSqME+c2uAgvSc0OXTz DA0c55jk7WBlsK2IloZzfZuKpMHgKuc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1706076658; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o2lr2QbuZmq3xr/8lS4baALtoR+HyKurF5geBOY4D50=; b=JBMPU3KvzXAdDbvm3MwMZKwdXpWi2C3qxLzEtq9L4ELqDF+HitI+25/2yMsym4sBoYUmyE Scjn5d3hupJGJsAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1706076658; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o2lr2QbuZmq3xr/8lS4baALtoR+HyKurF5geBOY4D50=; b=u8utl9dcTSZd+HuKeZk3L64RSLPW++BPZvzlfM2NpygMgNX65So1TwJuXKu8Cc3MVOVoZ5 pYy0/u8u2ZwUuW4Tc38DbQyLTLjhC+47BASVfqHeWhF9BPj1pMBMSqME+c2uAgvSc0OXTz DA0c55jk7WBlsK2IloZzfZuKpMHgKuc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1706076658; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=o2lr2QbuZmq3xr/8lS4baALtoR+HyKurF5geBOY4D50=; b=JBMPU3KvzXAdDbvm3MwMZKwdXpWi2C3qxLzEtq9L4ELqDF+HitI+25/2yMsym4sBoYUmyE Scjn5d3hupJGJsAA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id F3A1B1333E; Wed, 24 Jan 2024 06:10:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id IPUgOPGpsGVVRwAAD6G6ig (envelope-from ); Wed, 24 Jan 2024 06:10:57 +0000 Message-ID: Date: Wed, 24 Jan 2024 07:10:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 05/15] block: add a max_user_discard_sectors queue limit Content-Language: en-US To: Christoph Hellwig , Jens Axboe Cc: "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , Paolo Bonzini , Stefan Hajnoczi , "Martin K. Petersen" , Damien Le Moal , Keith Busch , Sagi Grimberg , linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, virtualization@lists.linux.dev References: <20240122173645.1686078-1-hch@lst.de> <20240122173645.1686078-6-hch@lst.de> From: Hannes Reinecke In-Reply-To: <20240122173645.1686078-6-hch@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=u8utl9dc; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=JBMPU3Kv X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.09 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-1.09)[88.10%]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_DKIM_ARC_DNSWL_HI(-1.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_TWELVE(0.00)[14]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.de:email,lst.de:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_IN_DNSWL_HI(-0.50)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: B2BBA1F7DA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240123_221100_386234_6D4831DC X-CRM114-Status: GOOD ( 12.43 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org On 1/22/24 18:36, Christoph Hellwig wrote: > Add a new max_user_discard_sectors limit that mirrors max_user_sectors > and stores the value that the user manually set. This now allows > updates of the max_hw_discard_sectors to not worry about the user > limit. > > Signed-off-by: Christoph Hellwig > --- > block/blk-settings.c | 13 ++++++++++--- > block/blk-sysfs.c | 18 +++++++++--------- > include/linux/blkdev.h | 1 + > 3 files changed, 20 insertions(+), 12 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Ivo Totev, Andrew McDonald, Werner Knoblich