From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [RFC PATCH] block: all callers should check blkdev_issue_flush's return Date: Tue, 26 Jun 2012 11:51:15 -0400 Message-ID: <20120626155115.GA17242@infradead.org> References: <1340724445-3314-1-git-send-email-snitzer@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: axboe@kernel.dk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, tj@kernel.org, hch@infradead.org, jmoyer@redhat.com, vgoyal@redhat.com, dm-devel@redhat.com To: Mike Snitzer Return-path: Content-Disposition: inline In-Reply-To: <1340724445-3314-1-git-send-email-snitzer@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Jun 26, 2012 at 11:27:25AM -0400, Mike Snitzer wrote: > It is concerning that a FLUSH may fail but the blkdev_issue_flush > callers assume it will always succeed. > > Each blkdev_issue_flush caller should come to terms with the reality > that a FLUSH may fail -- the file_operations' .fsync methods in > particular. nilfs2 is the only filesystem that checks > blkdev_issue_flush's return. Good spot, but it would be way better if you actually provided patches to fix this instead of just adding more compiler warnings.