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 64981381D5 for ; Tue, 13 Feb 2024 12:01:36 +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=1707825697; cv=none; b=AS4z4rFaf7AjevtyfWLjoaX0pjYtxD1v9cfupK0zjm8+1IsuqePFge5XwNpjMoOW4r5KfvZwd19s6sWauWLk6yxAwI5HdliNVTMROePIjG/+/0Amr+1wrSk5lY099wz6ugAqZB/H7tnzeoJHUKLc7FRwXOAf7KXypGrQf8cin+w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707825697; c=relaxed/simple; bh=pS22KLPRg8gjC5fdp9xTlewRYz0lMaWo19glV9vYFMg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Jw+562CtQL3odj4cZFX9IV6n09jO8Pp/HAdVUyI1WBHiHGZh1BIg4Ldpz3UKTp3S7y2oNc5EFaMe6RzOK7aVSyUMDbQ++XSCym+WuWXj7gkegh6Owy6hZZifaDxPJXQrxZh1iKYFKtZuuUfrpZNGRzh8BR9sI5P7GEZBSmdYEvk= 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=SzcpL8yj; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=VL9EBwwi; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=SzcpL8yj; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=VL9EBwwi; 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="SzcpL8yj"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="VL9EBwwi"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="SzcpL8yj"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="VL9EBwwi" 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 A22D022203; Tue, 13 Feb 2024 12:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707825694; 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=1m0zTcQVE87GlJP7/ISMt7U2bx0NFQf4k25N4z9hJGc=; b=SzcpL8yjaEmzoorxZYybEkQHaCSAcTpSsnJBBG2UdZBzixjxGRranSsHoVlll+hPy6gjIS K0Zs2H7Ts5EYujyPSr4Sqe9csuw5k4FUePWfpdg7F2AYJES+AJPW+BcH18BGB4cf/md2Gp pvW3z7CXJmfsAFTHNkm7A9uV76JTfrA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707825694; 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=1m0zTcQVE87GlJP7/ISMt7U2bx0NFQf4k25N4z9hJGc=; b=VL9EBwwiRInkQE6B45kxAJheNLyG1hPcmhTHDXhkPKzWTCUwvFs8d8O5QAKdalIUC+kJ3f xdS+wh2vg/f8kICA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707825694; 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=1m0zTcQVE87GlJP7/ISMt7U2bx0NFQf4k25N4z9hJGc=; b=SzcpL8yjaEmzoorxZYybEkQHaCSAcTpSsnJBBG2UdZBzixjxGRranSsHoVlll+hPy6gjIS K0Zs2H7Ts5EYujyPSr4Sqe9csuw5k4FUePWfpdg7F2AYJES+AJPW+BcH18BGB4cf/md2Gp pvW3z7CXJmfsAFTHNkm7A9uV76JTfrA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707825694; 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=1m0zTcQVE87GlJP7/ISMt7U2bx0NFQf4k25N4z9hJGc=; b=VL9EBwwiRInkQE6B45kxAJheNLyG1hPcmhTHDXhkPKzWTCUwvFs8d8O5QAKdalIUC+kJ3f xdS+wh2vg/f8kICA== 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 2C48A1370C; Tue, 13 Feb 2024 12:01:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id 0HUdBh5ay2UaAgAAD6G6ig (envelope-from ); Tue, 13 Feb 2024 12:01:34 +0000 Message-ID: <83b5a7ec-da7a-4520-973c-bbc3131693a5@suse.de> Date: Tue, 13 Feb 2024 13:01:34 +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 08/15] block: pass a queue_limits argument to blk_alloc_queue 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: <20240213073425.1621680-1-hch@lst.de> <20240213073425.1621680-9-hch@lst.de> From: Hannes Reinecke In-Reply-To: <20240213073425.1621680-9-hch@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=SzcpL8yj; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=VL9EBwwi X-Spamd-Result: default: False [-5.17 / 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(-2.87)[99.44%]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; 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]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Queue-Id: A22D022203 X-Spam-Level: X-Spam-Score: -5.17 X-Spam-Flag: NO On 2/13/24 08:34, Christoph Hellwig wrote: > Pass a queue_limits to blk_alloc_queue and apply it after validating and > capping the values using blk_validate_limits. This will allow allocating > queues with valid queue limits instead of setting the values one at a > time later. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Damien Le Moal > --- > block/blk-core.c | 26 ++++++++++++++++++-------- > block/blk-mq.c | 7 ++++--- > block/blk.h | 2 +- > block/genhd.c | 5 +++-- > 4 files changed, 26 insertions(+), 14 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes