From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: percolating ERESTARTSYS beyond PCI subsystem
Date: Sat, 18 Apr 2015 20:58:25 +0200 [thread overview]
Message-ID: <20150418185825.GD30508@kroah.com> (raw)
In-Reply-To: <20150418114057.GA2961@debian>
On Sat, Apr 18, 2015 at 01:40:57PM +0200, Milton Krutt wrote:
> Hi. The scenario is a PCI driver on a kernel 3.19.2:
>
> is it possible, in case pending_signal(current) is true, to return -ERESTARTSYS
> to insmod process, in order to get it restart (as expectable)?
>
> After some attempts (with pending_signal(current) being true), it seems that -ERESTARTSYS
> is caught by the "pci layer" that complains saying something like "probing failed ..
> unexpectedly returns -512" and nothing is restarted as expected.
What is the exact error message?
insmod should never return ERESTARTSYS unless some driver is doing
something really odd/broken. What driver are you trying to load that
does this?
> Does insmod disables it explicitly? If so, how to get a similar "restart-behaviour"?
It doesn't disable it, it's just that nothing on that syscall path
should be returning that value, as it doesn't make sense.
thanks,
greg k-h
next prev parent reply other threads:[~2015-04-18 18:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-18 11:40 percolating ERESTARTSYS beyond PCI subsystem Milton Krutt
2015-04-18 18:58 ` Greg KH [this message]
2015-04-19 17:14 ` Milton Krutt
2015-04-19 19:30 ` Greg KH
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=20150418185825.GD30508@kroah.com \
--to=greg@kroah.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/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;
as well as URLs for NNTP newsgroup(s).