Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761465Ab3JPTWS (ORCPT ); Wed, 16 Oct 2013 15:22:18 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:35110 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761288Ab3JPTWR (ORCPT ); Wed, 16 Oct 2013 15:22:17 -0400 Message-ID: <1381929897.1864.0.camel@dabdike> Subject: Re: [Bug] 12.864681 BUG: lock held when returning to user space! From: James Bottomley To: dgilbert@interlog.com Cc: vaughan , Madper Xie , linux-kernel@vger.kernel.org, SCSI development list In-Reply-To: <52540C7F.8050207@interlog.com> References: <8761tilrl0.fsf@redhat.com> <874n8s2tjz.fsf@redhat.com> <5253A9E7.5030707@oracle.com> <52540C7F.8050207@interlog.com> Content-Type: text/plain; charset="ISO-8859-15" Date: Wed, 16 Oct 2013 14:24:57 +0100 Mime-Version: 1.0 X-Mailer: Evolution 3.8.5 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 849 Lines: 24 On Tue, 2013-10-08 at 09:45 -0400, Douglas Gilbert wrote: > On 13-10-08 02:44 AM, vaughan wrote: > > Hi Madper, > > > > CC to Douglas to get comments. > > I use the rw_semaphore o_sem to protect excl open, introduced in commit > > 15b06f9a02406e5460001db6d5af5c738cd3d4e7 since v3.12-rc1. > > Is it forbidden to do like that in kernel?... > > It appears you can not (allow sg_open() to hold a semaphore > then return to the user space). So you will need to do some > rework on that patch or revert it. OK, there being no reply on this, I'll do the revert ... that's all four patches, correct? James -- 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/