From: NeilBrown Subject: Re: bio_add_page rw mode check by merge_bvec_fn Date: Sat, 23 Nov 2013 16:12:34 +1100 Message-ID: <20131123161234.20ae4f9d@notabene.brown> References: <528E4A50.7040609@itwm.fraunhofer.de> <528E4C19.70507@itwm.fraunhofer.de> <20131122153618.GB15143@infradead.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0646379520130984605==" Cc: Jens Axboe , xfs@oss.sgi.com, Bernd Schubert , Kent Overstreet , "linux-fsdevel@vger.kernel.org" , linux-ext4@vger.kernel.org To: Christoph Hellwig Return-path: In-Reply-To: <20131122153618.GB15143@infradead.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com List-Id: linux-ext4.vger.kernel.org --===============0646379520130984605== Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/kJU+Y90G7.7Isi0HWk6i/YX"; protocol="application/pgp-signature" --Sig_/kJU+Y90G7.7Isi0HWk6i/YX Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 22 Nov 2013 07:36:18 -0800 Christoph Hellwig wrote: > While this is trivial to fix it's also fairly unexpected and easy > to get wrong for new callers. Neil, can you explain why you > desperately need it? Desperately? Not at all? Need? Not really. This is just in RAID5 and merge_bvec_fn is purely an optimisation for RAID5. Limiting read BIOs to one chunk allows us to bypass the stripe-cache, so can be good. Limiting write BIOs is completely unnecessary so we currently don't bother. So I have no objection to bvm->bi_rw being removed. Thanks, NeilBrown --Sig_/kJU+Y90G7.7Isi0HWk6i/YX Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIVAwUBUpA5Qjnsnt1WYoG5AQJ0PQ//Tc7Z87QuBtjhXmEq8zwwumqR/Jzfg+ok Q3VZBYu6kgpR2QZCoi94cdHo9vbmfHYcbrJT8DsheKvljqFOOb5uUsarbLmSI95P FuUbSmUvmHMhh7N1dCovviFmiCuNwdFgsUbA3VpKsk/3LToypu2k/4jHP+WbbViW 7wTBjqSpM2XxZOLsPwJtBnRxJ/wiZ9tIgYk+8YYWnno/rmjPS2k12YOX6spCiKOs ndB2NXyToMgBEJHRXXsIZrfnW3r9jGZEEbgcbiHrDyHWNPtwmSfIjI3D1iZZXAtw Ip/mLaQDqKrwNdIO10rokNHJ8WFGEOuRMPgoH+GzmIrF59ONWkIdj/OX85Ruw9GR CU8cKfaQFp4xQRflo5BZLycA7sRUixnCRUEaAUi4MkHKZRXQcc51bD3NYO5aqVty OJGkQ1PQc3iUMkEpd8TDOk1AgNHJCvfla5brMKWWIxaraxzRt58wnSryh3KySInY zGF9LU/16pkCKedTtkLfUYNkKvjYfYNu/TACDmfz+xKxnf1OcQQSyi1RQ5vvAXIj bwxDsXRU6x4eeqoNuz5lOU5W9gjSd9gpsublcJLXQqfCneg9OG87s1bs0F16mDfm q5hOjXikfpWGC8JhAtejfteW9sa4T021z1ircSCG4RhS9EQKNIwHn/dbEM3X4saS vZMgRHYPECc= =/BWO -----END PGP SIGNATURE----- --Sig_/kJU+Y90G7.7Isi0HWk6i/YX-- --===============0646379520130984605== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs --===============0646379520130984605==--