Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934289AbcJ0GhX (ORCPT ); Thu, 27 Oct 2016 02:37:23 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:37172 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932605AbcJ0GhT (ORCPT ); Thu, 27 Oct 2016 02:37:19 -0400 Date: Wed, 26 Oct 2016 23:37:17 -0700 From: Christoph Hellwig To: Jens Axboe Cc: axboe@kernel.dk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, jack@suse.cz, kernel@kolivas.org Subject: Re: [PATCH 1/8] block: add WRITE_BG Message-ID: <20161027063717.GA1165@infradead.org> References: <1477515135-16469-1-git-send-email-axboe@fb.com> <1477515135-16469-2-git-send-email-axboe@fb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1477515135-16469-2-git-send-email-axboe@fb.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1057 Lines: 23 > * non-volatile media on completion. > + * WRITE_BG Background write. This is for background activity like > + * the periodic flush and background threshold writeback > * > */ > #define RW_MASK REQ_OP_WRITE > @@ -202,6 +204,7 @@ typedef int (dio_iodone_t)(struct kiocb *iocb, loff_t offset, > #define WRITE_FLUSH (REQ_SYNC | REQ_NOIDLE | REQ_PREFLUSH) > #define WRITE_FUA (REQ_SYNC | REQ_NOIDLE | REQ_FUA) > #define WRITE_FLUSH_FUA (REQ_SYNC | REQ_NOIDLE | REQ_PREFLUSH | REQ_FUA) > +#define WRITE_BG (REQ_NOIDLE | REQ_BG) I've been trying to kill off these WRITE_ flags as they aren't exactly helpful, see my branch here that I'm waiting for the previous serious to go in: http://git.infradead.org/users/hch/block.git/shortlog/refs/heads/block-flags Which also begs the question why you add the REQ_NOIDLE flag above, as it's only applied to synchronous queues in cfq as far as I can tell. And while I'm at nitpicking about the most trivial patch of the series anyway: any good reason to not just spell out the "BACKGROUND" ?