Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932076AbVKTUnr (ORCPT ); Sun, 20 Nov 2005 15:43:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932080AbVKTUnq (ORCPT ); Sun, 20 Nov 2005 15:43:46 -0500 Received: from 22.107.233.220.exetel.com.au ([220.233.107.22]:34827 "EHLO arnor.apana.org.au") by vger.kernel.org with ESMTP id S932076AbVKTUnq (ORCPT ); Sun, 20 Nov 2005 15:43:46 -0500 Date: Mon, 21 Nov 2005 07:43:25 +1100 To: Paul Clements Cc: akpm@osdl.org, djani22@dynamicweb.hu, Linux Kernel Mailing List Subject: Re: [NBD] Use per-device semaphore instead of BKL Message-ID: <20051120204325.GB11043@gondor.apana.org.au> References: <200511190345.jAJ3jFC3016406@shell0.pdx.osdl.net> <437F4C85.3070108@steeleye.com> <20051119223419.GA1751@gondor.apana.org.au> <20051120015807.GA3593@gondor.apana.org.au> <4380B015.9060005@steeleye.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4380B015.9060005@steeleye.com> User-Agent: Mutt/1.5.9i From: Herbert Xu Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 999 Lines: 23 On Sun, Nov 20, 2005 at 12:19:17PM -0500, Paul Clements wrote: > > The dropping of the lock in nbd_do_it is actually critical to the way > nbd functions. nbd_do_it runs for the lifetime of the nbd device, so if > nbd_do_it were holding some lock (BKL or otherwise), we'd have big problems. Why would you want to issue an ioctl from a different process while nbd-client is still running? Allow ioctl's while nbd_do_it is in progress is a *serious* bug. For a start, if someone else clears the socket then nbd_read_stat will crash. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - 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/