From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:46294 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524AbdBFRkq (ORCPT ); Mon, 6 Feb 2017 12:40:46 -0500 Date: Mon, 6 Feb 2017 18:40:46 +0100 From: Greg Kroah-Hartman To: Christoph Hellwig Cc: Keith Busch , linux-pci@vger.kernel.org, Bjorn Helgaas , Lukas Wunner , Wei Zhang , Austin Bolen Subject: Re: [PATCHv5 2/5] pci: Add device disconnected state Message-ID: <20170206174046.GA10441@kroah.com> References: <1486144555-5526-1-git-send-email-keith.busch@intel.com> <1486144555-5526-3-git-send-email-keith.busch@intel.com> <20170203205330.GA16487@kroah.com> <20170206173202.GB25762@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20170206173202.GB25762@infradead.org> Sender: linux-pci-owner@vger.kernel.org List-ID: On Mon, Feb 06, 2017 at 09:32:02AM -0800, Christoph Hellwig wrote: > On Fri, Feb 03, 2017 at 09:53:30PM +0100, Greg Kroah-Hartman wrote: > > > +/* pci_dev priv_flags */ > > > +#define PCI_DEV_DISCONNECTED 0 > > > + > > > +static inline int pci_dev_set_disconnected(struct pci_dev *dev, void *unused) > > > +{ > > > + set_bit(PCI_DEV_DISCONNECTED, &dev->priv_flags); > > > > Why a single bit? Are you trying to do this without locking or > > something? And if you want a bit, what's wrong with a C bit type? Or > > just a boolean? > > What's a C bit type? Sorry, was thinking of: unsigned foo:2; don't know what the "real" name for that is... thanks, greg k-h