Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4706F517 for ; Wed, 24 Jan 2024 06:22:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706077372; cv=none; b=uJYrbPcopxiN96bOc6xLAmJ76FjxXQvg0/vwRqEBY781jUNbfDuEnyi8LW/5CJY4k+Zfc4Dl5Xb9fjRsRmSwT5RY93s/vsnIIwWjEmmpMICep4KUcMn/WYiiJvBsfLQTeadEsJczLPnWlRmFU2/uk9fWYrGBy9yOg3AhnCbqpyA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706077372; c=relaxed/simple; bh=1eCwhM5Sn2wvf0dYCYVZwvWSs9GCp5IHKd1yT73kNIU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Rq9DiZ9SRvxdEJphTbZsTSr1baZpNIANQOMfUCiR8F0wCGcDhSWpK4+0j6eQ4XhFH02kd42Obt7CPWSd+ap/fx18oXdC/ypX+/6BNLqNABXaG2jYPRE1RkQPi89RmXnNpsB48jiIxe7BTqqD39oEobKBB9sj0Ii76BktbG9pTL4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=juZp0ik7; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=XaJSeZsD; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=juZp0ik7; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=XaJSeZsD; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="juZp0ik7"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="XaJSeZsD"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="juZp0ik7"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="XaJSeZsD" 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-out1.suse.de (Postfix) with ESMTPS id 108E121F44; Wed, 24 Jan 2024 06:22:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1706077368; 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=COKFQTKQosvNZzR6NiNDAcWi2tt2dVz/zpebkiOz99Y=; b=juZp0ik7BIOhBbD548EnFVchd+AN9s+BE1+/JKcd4m5AsYSjxcMm+G9IqyYrUJIHRF8y9a EfDFUqYIiikbQYzFPc619POmR4ZUanvVxKr1qGpvTSAsBbLO+EENzmTfNRUcUN4IXeUcLI a6retV1PPVe1oqG3hTSaQyHH8wffTNY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1706077368; 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=COKFQTKQosvNZzR6NiNDAcWi2tt2dVz/zpebkiOz99Y=; b=XaJSeZsDlT6DrNax/cbU/9ZflknJdBwrLAcWJe3zHquN/upHwQlv9LWzyQMmt9Es/t+GvC ttv9CM1sNw2r8ZAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1706077368; 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=COKFQTKQosvNZzR6NiNDAcWi2tt2dVz/zpebkiOz99Y=; b=juZp0ik7BIOhBbD548EnFVchd+AN9s+BE1+/JKcd4m5AsYSjxcMm+G9IqyYrUJIHRF8y9a EfDFUqYIiikbQYzFPc619POmR4ZUanvVxKr1qGpvTSAsBbLO+EENzmTfNRUcUN4IXeUcLI a6retV1PPVe1oqG3hTSaQyHH8wffTNY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1706077368; 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=COKFQTKQosvNZzR6NiNDAcWi2tt2dVz/zpebkiOz99Y=; b=XaJSeZsDlT6DrNax/cbU/9ZflknJdBwrLAcWJe3zHquN/upHwQlv9LWzyQMmt9Es/t+GvC ttv9CM1sNw2r8ZAw== 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 37E211333E; Wed, 24 Jan 2024 06:22:47 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id 2OxhC7essGWZSQAAD6G6ig (envelope-from ); Wed, 24 Jan 2024 06:22:47 +0000 Message-ID: Date: Wed, 24 Jan 2024 07:22:47 +0100 Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 15/15] loop: use the atomic queue limits update API 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-16-hch@lst.de> From: Hannes Reinecke In-Reply-To: <20240122173645.1686078-16-hch@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Level: Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=juZp0ik7; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=XaJSeZsD X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.23 / 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.23)[89.43%]; 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)[lst.de:email,suse.de:dkim,suse.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-Spam-Score: -4.23 X-Rspamd-Queue-Id: 108E121F44 X-Spam-Flag: NO On 1/22/24 18:36, Christoph Hellwig wrote: > Pass the default limits to blk_mq_alloc_disk and then use the > queue_limits_{start,commit}_update API to change the limits in an > atomic way on existing loop gendisks. > > Signed-off-by: Christoph Hellwig > --- > drivers/block/loop.c | 41 +++++++++++++++++++++++++---------------- > 1 file changed, 25 insertions(+), 16 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