Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1373550

Re: [PATCH] usb: f_mass_storage: test whether thread is running before starting another

From Michal Nazarewicz <mina86@mina86.com>
Newsgroups linux.kernel
Subject Re: [PATCH] usb: f_mass_storage: test whether thread is running before starting another
Date 2016-04-07 18:50 +0200
Message-ID <rlli2-6NG-17@gated-at.bofh.it> (permalink)
References <rlj6y-5b8-1@gated-at.bofh.it>
Organization http://mina86.com/

Show all headers | View raw


> On Thu, 7 Apr 2016, Michal Nazarewicz wrote:
>> This makes me suspect it’s not possible to link a function instance to
>> the same configuration twice, but now that I think about it, I’m not
>> quite sure what would happen if one did:
>> 
>> 	ln -s functions/mass_storage.0 configs/c.1/foo
>> 	ln -s functions/mass_storage.0 configs/c.1/bar

On Thu, Apr 07 2016, Alan Stern wrote:
> Do you think it would be worthwhile to check for this possibility in 
> the driver and report an error?

I think this should be (if it isn’t already) blocked on configfs side.
I cannot see a legitimate use of such configuration and I wouldn’t be
surprised if other function drivers broke as well.

-- 
Best regards
ミハウ “𝓶𝓲𝓷𝓪86” ナザレヴイツ
«If at first you don’t succeed, give up skydiving»

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] usb: f_mass_storage: test whether thread is running before starting another Michal Nazarewicz <mina86@mina86.com> - 2016-04-05 19:30 +0200
  Re: [PATCH] usb: f_mass_storage: test whether thread is running  before starting another Alan Stern <stern@rowland.harvard.edu> - 2016-04-05 19:50 +0200
    Re: [PATCH] usb: f_mass_storage: test whether thread is running before starting another Michal Nazarewicz <mina86@mina86.com> - 2016-04-05 20:10 +0200
      Re: [PATCH] usb: f_mass_storage: test whether thread is running  before starting another Alan Stern <stern@rowland.harvard.edu> - 2016-04-05 20:40 +0200
        Re: [PATCH] usb: f_mass_storage: test whether thread is running before starting another Michal Nazarewicz <mina86@mina86.com> - 2016-04-06 00:30 +0200
          Re: [PATCH] usb: f_mass_storage: test whether thread is running  before starting another Alan Stern <stern@rowland.harvard.edu> - 2016-04-06 17:10 +0200
            Re: [PATCH] usb: f_mass_storage: test whether thread is running before starting another Michal Nazarewicz <mina86@mina86.com> - 2016-04-07 12:00 +0200
              Re: [PATCH] usb: f_mass_storage: test whether thread is running  before starting another Alan Stern <stern@rowland.harvard.edu> - 2016-04-07 16:30 +0200
                Re: [PATCH] usb: f_mass_storage: test whether thread is running  before starting another Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-04-07 16:50 +0200
                Re: [PATCH] usb: f_mass_storage: test whether thread is running  before starting another Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> - 2016-04-07 23:00 +0200
                Re: [PATCH] usb: f_mass_storage: test whether thread is running before starting another Michal Nazarewicz <mina86@mina86.com> - 2016-04-07 18:50 +0200

csiph-web