Re: [PATCH 2/5] dccp: Auto-load (when supported) CCID plugins for negotiation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/12/13 Gerrit Renker <gerrit@xxxxxxxxxxxxxx>:> +/**> + * ccid_request_module  -  Pre-load CCID module for later use> + * This should be called only from process context (e.g. during connection> + * setup) and is necessary for later calls to ccid_new (typically in software> + * interrupt), so that it has the modules available when they are needed.> + */> +static int ccid_request_module(u8 id)> +{> +       if (!in_atomic()) {> +               ccids_read_lock();> +               if (ccids[id] == NULL) {> +                       ccids_read_unlock();> +                       return request_module("net-dccp-ccid-%d", id);> +               }> +               ccids_read_unlock();> +       }> +       return 0;> +}
Just a random thought: does this lock really do anything useful here?
Best Regards,Michał Mirosław˙ôčş{.nÇ+?ˇ?Ž?­?+%?Ë˙ąéÝśĽ?w˙ş{.nÇ+?ˇ?qĘ˙?{ayşĘ?Ú?ë,j­˘fŁ˘ˇh??ď?ę˙?ęçz_čŽ(­é???ݢj"?úśm§˙˙žŤţGŤ?é˙˘¸??¨č­Ú&Łř§~?á


[Index of Archives]     [Linux Kernel]     [IETF DCCP]     [Linux Networking]     [Git]     [Security]     [Linux Assembly]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux