public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* firmware_class warnings on resume
@ 2015-12-20 12:20 Andy Lutomirski
  2015-12-21 17:54 ` Laura Abbott
  0 siblings, 1 reply; 3+ messages in thread
From: Andy Lutomirski @ 2015-12-20 12:20 UTC (permalink / raw)
  To: Ming Lei, linux-kernel@vger.kernel.org

I hit this warning fairly frequently when resuming 4.4-rc5:

        ret = usermodehelper_read_trylock();
        if (WARN_ON(ret)) {
            dev_err(device, "firmware: %s will not be loaded\n",
                name);
            goto out;
        }

It seems like it could be improved in two ways fairly easily:

1. Shouldn't firmware_class try the direct load before trying to get
the usermodehelper lock?

2. Why is the !NOWAIT case doing a trylock?  That seems wrong.

--Andy

-- 
Andy Lutomirski
AMA Capital Management, LLC

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-21 22:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-20 12:20 firmware_class warnings on resume Andy Lutomirski
2015-12-21 17:54 ` Laura Abbott
2015-12-21 22:46   ` Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox