From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423908AbcFIJBS (ORCPT ); Thu, 9 Jun 2016 05:01:18 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:38529 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752390AbcFIJBL (ORCPT ); Thu, 9 Jun 2016 05:01:11 -0400 Date: Thu, 9 Jun 2016 02:01:07 -0700 From: Christoph Hellwig To: Waiman Long Cc: "Theodore Ts'o" , Andreas Dilger , Alexander Viro , Matthew Wilcox , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Dave Chinner , Christoph Hellwig , Jan Kara , Scott J Norton , Douglas Hatch , Toshimitsu Kani Subject: Re: [PATCH 1/3] dax: Take shared lock in dax_do_io() Message-ID: <20160609090107.GA16921@infradead.org> References: <1464992897-34063-1-git-send-email-Waiman.Long@hpe.com> <1464992897-34063-2-git-send-email-Waiman.Long@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1464992897-34063-2-git-send-email-Waiman.Long@hpe.com> User-Agent: Mutt/1.5.24 (2015-08-30) 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 Please just take the extra step and move the locking out of dax_do_io and into the caller.