From: Matthew Wilcox <matthew@wil.cx>
To: Simon Horman <horms@verge.net.au>
Cc: Sven Wegener <sven.wegener@stealer.net>,
Michael Ellerman <michael@ellerman.id.au>,
linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
Jesse Barnes <jbarnes@virtuousgeek.org>
Subject: Re: [patch] PCI: check the return value of device_create_bin_file() in pci_create_bus()
Date: Tue, 5 Aug 2008 06:26:58 -0600 [thread overview]
Message-ID: <20080805122639.GP26461@parisc-linux.org> (raw)
In-Reply-To: <20080805121531.GA29763@verge.net.au>
On Tue, Aug 05, 2008 at 10:15:32PM +1000, Simon Horman wrote:
> On Tue, Aug 05, 2008 at 05:28:14AM -0600, Matthew Wilcox wrote:
> > Yes, but you're essentially saying here that if I can't create a couple
> > of poxy sysfs files, I can't have this PCI bus at all? This seems like
> > a bad decision to me. I'd rather have a PCI bus without the files than
> > no PCI bus at all. By all means, we should whinge mightily if we can't
> > create the files so the sysadmin has a chance of figuring out why things
> > aren't quite working right, but I might have my root filesystem on a
> > device on that PCI bus.
>
> Are you suggesting just making pci_create_bus() have a big winge
> using printk() but returning void regardless of what happens?
> That sounds fine to me, though I guess it would also need to unwind
> if the first call to device_create_bin_file() succeeds but the second
> one doesn't.
Sounds like the right course of action to me.
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
next prev parent reply other threads:[~2008-08-05 12:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-05 10:16 [patch] PCI: check the return value of device_create_bin_file() in pci_create_bus() Simon Horman
2008-08-05 10:33 ` Michael Ellerman
2008-08-05 10:39 ` Sven Wegener
2008-08-05 11:00 ` Simon Horman
2008-08-05 11:14 ` Simon Horman
2008-08-05 11:28 ` Matthew Wilcox
2008-08-05 12:15 ` Simon Horman
2008-08-05 12:26 ` Matthew Wilcox [this message]
2008-08-06 0:57 ` Simon Horman
2008-08-06 13:19 ` Matthew Wilcox
2008-08-06 23:25 ` Simon Horman
2008-08-06 23:30 ` Simon Horman
2008-08-07 0:30 ` Michael Ellerman
2008-08-07 1:06 ` Simon Horman
2008-08-07 4:56 ` Simon Horman
2008-08-07 16:50 ` Jesse Barnes
2008-08-07 22:59 ` Simon Horman
2008-08-05 13:21 ` Sven Wegener
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080805122639.GP26461@parisc-linux.org \
--to=matthew@wil.cx \
--cc=horms@verge.net.au \
--cc=jbarnes@virtuousgeek.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=michael@ellerman.id.au \
--cc=sven.wegener@stealer.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox