Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752967Ab3GSWvJ (ORCPT ); Fri, 19 Jul 2013 18:51:09 -0400 Received: from longford.logfs.org ([213.229.74.203]:59826 "EHLO longford.logfs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752489Ab3GSWvH (ORCPT ); Fri, 19 Jul 2013 18:51:07 -0400 Date: Fri, 19 Jul 2013 17:19:29 -0400 From: =?utf-8?B?SsO2cm4=?= Engel To: Vaughan Cao Cc: dgilbert@interlog.com, JBottomley@parallels.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/4] [SCSI] sg: no need sg_open_exclusive_lock Message-ID: <20130719211929.GB29404@logfs.org> References: <20130715203730.GA21804@logfs.org> <1374075246-22923-1-git-send-email-vaughan.cao@oracle.com> <1374075246-22923-3-git-send-email-vaughan.cao@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1374075246-22923-3-git-send-email-vaughan.cao@oracle.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 992 Lines: 26 On Wed, 17 July 2013 23:34:04 +0800, Vaughan Cao wrote: > Date: Wed, 17 Jul 2013 23:34:04 +0800 > From: Vaughan Cao > To: joern@logfs.org > Cc: dgilbert@interlog.com, JBottomley@parallels.com, > linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, > vaughan.cao@oracle.com > Subject: [PATCH v4 2/4] [SCSI] sg: no need sg_open_exclusive_lock > X-Mailer: git-send-email 1.7.11.7 > > Open exclusive check is protected by o_sem, no need sg_open_exclusive_lock. > @exclude is used to record which type of rwsem we are holding. > > Signed-off-by: Vaughan Cao Reviewed-by: Joern Engel Jörn -- "Error protection by error detection and correction." -- from a university class -- 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/