Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759631AbZCXL1K (ORCPT ); Tue, 24 Mar 2009 07:27:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758297AbZCXL0z (ORCPT ); Tue, 24 Mar 2009 07:26:55 -0400 Received: from brick.kernel.dk ([93.163.65.50]:35223 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757883AbZCXL0z (ORCPT ); Tue, 24 Mar 2009 07:26:55 -0400 Date: Tue, 24 Mar 2009 12:26:53 +0100 From: Jens Axboe To: Nikanth Karthikesan Cc: Christoph Hellwig , Gerd Hoffmann , Constantine Sapuntzakis , Miklos Szeredi , nikanth@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Block - Honour barrier requests in loop driver Message-ID: <20090324112652.GJ27476@kernel.dk> References: <200903171417.16760.knikanth@suse.de> <20090317190905.GA28816@infradead.org> <200903181028.20689.knikanth@suse.de> <200903241124.36223.knikanth@suse.de> <20090324112443.GI27476@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090324112443.GI27476@kernel.dk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1156 Lines: 35 On Tue, Mar 24 2009, Jens Axboe wrote: > On Tue, Mar 24 2009, Nikanth Karthikesan wrote: > > On Wednesday 18 March 2009 10:28:20 Nikanth Karthikesan wrote: > > > On Wednesday 18 March 2009 00:39:05 Christoph Hellwig wrote: > > > > On Tue, Mar 17, 2009 at 05:39:49PM +0530, Nikanth Karthikesan wrote: > > > > > + if (!file->f_op || !file->f_op->fsync) { > > > > > + ret = -EOPNOTSUPP; > > > > > + goto out; > > > > > + } > > > > > > > > file->f_op is never zero, so you can remove the checks for that. > > > > Otherwise looks good. > > > > > > Thanks for reviewing. I've removed that check. > > > > > > Jens, Can you merge this? > > > > > Hi Jens > > > > Did you get to look at this? Can you merge this? > > Yep, I'll merge it. Thanks! Patch is line wrapped, and you still have one more check for f->f_op == NULL that you don't need. I have fixed it up, but please fix your mailer. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/