Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp88927lqg; Wed, 10 Apr 2024 16:56:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/+lNGBoc3OyjqFSjZU4PE3EkYpXLA/kUrtUoviM0mrK3uNV7Qu2dqVd1y2gQ5N0lCwk387COSK/dHDSpHbElE6oRH3QcW8K0Ds2Xmaw== X-Google-Smtp-Source: AGHT+IEcfniG3gx0AI7d5wq92bcCSkOW6FtMeZSPHmm9JyZq41917ur8faRWseUqNxJYtYa201id X-Received: by 2002:a05:6a20:6a04:b0:1a3:69a9:e3e4 with SMTP id p4-20020a056a206a0400b001a369a9e3e4mr4758200pzk.50.1712793398981; Wed, 10 Apr 2024 16:56:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712793398; cv=pass; d=google.com; s=arc-20160816; b=pJYZfoKcvAYkkcM6KH9agKP965OT6mf+38xdxJp6tk8oGuyZUTZx01jxKUp+ub7dg/ JLVzQrD3aNyPxafrojmpXLJsDggee1bEC4AviXhlWBvhQ5zrYqIearZ7r8j6FzoeH/W5 sC90VFLCLqd79oI73A8zgb3218vu6i9+4zoPgwDEpS8rTd73Z7Z6VjEkuWfcIAvwBAAe 073/pRjcIcQWlrfxBcf9RClE54TcwBOBRGDM4L4KQpnbkU9t4RlJ1Jm8xNLkRn0Xop2K l5DV+T02U+gg9mqHZAl8XMbPZYub7T2uK1N7+P5MzcS5fGaD9stepNVWLzGFsG2zp2bc lBFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=+0GBmcwTyMhAOkoLxmQrxueXW3lGrGIZ8d1OHjV7ylM=; fh=nZm3VI0o4XQrgCeaF2RSRGlGUMCTZbcEBkuBvcVv29M=; b=RjVoqqrGMQ2njYmTt/BEJ6WgGnpAnhkKvhBAUL6NFx9pBZAsZmrRJHmSq915V8YBVq wH6a/IZ1Hr734Z2TRLOxlJLE8vJiQ5enkRTSV6pZmsDPrMVpKr5+nysCxAbplbmYIuJZ /RaoliRFnr9CVBvh5I3VAPc9RRZHxchImuUSZ5hXYGGpl6JD3UuJIC9g1ePFw8Oe4BR7 XmVATfnTKRyYV2nRppBfbwlAuYZqg47LG1ZFXXfSuwlq+rR5zi5/Hnc8/MsffYfDBFIT OYfssQ+rYDklmV+zYBkDqoh68WqJzRJEWrtpAPI87GnyM84SWw65LHtAoFET42+qYHV0 lIRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=GJtMIjNj; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-139507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n3-20020a170902f60300b001e2a41b7569si190970plg.83.2024.04.10.16.56.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 16:56:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=GJtMIjNj; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-139507-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5A6CBB25609 for ; Wed, 10 Apr 2024 22:59:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EEEE44C84; Wed, 10 Apr 2024 22:53:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="GJtMIjNj" 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.subspace.kernel.org (Postfix) with ESMTPS id D52A13E497; Wed, 10 Apr 2024 22:53:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712789630; cv=none; b=WMFjsvfmAz3mkQuuf0gAYiAwbccdIKbfhw59oD0ebmKRM1HXCfKehGrzup8EaGId7usS+UOrErUilUn7vqZUCg6/SUyzM+p5L6aac5pHxJEq8mBiX8EogRog/jXI/BTKJS/vhNHtBd6EKBgAo3HfffpcBbWN+ApaXbUqoXZl8i0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712789630; c=relaxed/simple; bh=+SF8fRD5qtMuzpo19NhWUcRSgrgCUtWHLitNvMbRUCg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PzH5o2zLqz1Ucxv/KxItPwVC8RO05pgjTiAq+X/C/6knB/DlE/Gmm84uq5cJrtwiMe5+KKdSLZO6F5TLJU94tdX55NNWjAsK8ZuXlzbi9nzwpFkjAdhjYFg1Wzm3ky8zeyFCZ4Vbj9atOwx5f9b5t2oVqoH57qwp6FRWFcGsvQQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=GJtMIjNj; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=+0GBmcwTyMhAOkoLxmQrxueXW3lGrGIZ8d1OHjV7ylM=; b=GJtMIjNjW41SrtG8JRyeUyv1YK 3/LJY8P60iIIigbcUK7nRIOG5SAxG9rk+7qqoUeoeruVCBueT9pP2tC+GnYuXFaJs3z9so25cEihh Xo7Gc5b+4nEQcKGzf68LqxzhWau+RLyP2fh/nQ9rV9kFMewdxavcXr90oaxnCSXWYDEKUFwuZIBuA 4RewKyRIxhxMa/ug9Fqqj+ecU9DLl6OIIm3wes6nThakVfuKPbIcCZfTOkqViwwdAu4SOk0oZTTXv 4pQKbDIKxSS51l/NZa3AZXDpH4pdhSjuxGDTtBUHefUTa2VxgbhtP0jzBsv1wU7ao3k/TI4T9Kwep YEzX5s9w==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rugp4-00000009KiJ-11gu; Wed, 10 Apr 2024 22:53:42 +0000 Date: Wed, 10 Apr 2024 15:53:41 -0700 From: Luis Chamberlain To: John Garry Cc: axboe@kernel.dk, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jack@suse.cz, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, linux-scsi@vger.kernel.org, ojaswin@linux.ibm.com, linux-aio@kvack.org, linux-btrfs@vger.kernel.org, io-uring@vger.kernel.org, nilay@linux.ibm.com, ritesh.list@gmail.com, willy@infradead.org Subject: Re: [PATCH v6 02/10] block: Call blkdev_dio_unaligned() from blkdev_direct_IO() Message-ID: References: <20240326133813.3224593-1-john.g.garry@oracle.com> <20240326133813.3224593-3-john.g.garry@oracle.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240326133813.3224593-3-john.g.garry@oracle.com> Sender: Luis Chamberlain On Tue, Mar 26, 2024 at 01:38:05PM +0000, John Garry wrote: > blkdev_dio_unaligned() is called from __blkdev_direct_IO(), > __blkdev_direct_IO_simple(), and __blkdev_direct_IO_async(), and all these > are only called from blkdev_direct_IO(). > > Move the blkdev_dio_unaligned() call to the common callsite, > blkdev_direct_IO(). > > Pass those functions the bdev pointer from blkdev_direct_IO() as it is non- > trivial to calculate. > > Reviewed-by: Keith Busch > Reviewed-by: Christoph Hellwig > Signed-off-by: John Garry Reviewed-by: Luis Chamberlain I think this patch should just be sent separately already and not part of this series. Luis