On Mon, Jul 27, 2009 at 03:46:24PM +0530, ravindu kher wrote: > Hello all, > > While going through the code of mass storage driver, I found that the > device pointer, "pusb_dev" beeing protected by "dev_mutex". > I have also found that the "pusb_dev" will be used in the following functions. > > 1) usb_fill_bulk_urb > 2) usb_buffer_alloc > 3) usb_buffer_free > 4) usb_sg_init > 5) usb_submit_urb > > My question is, instead of locking the "dev_mutex" for entire process > of submitting command, Can I lock and unlock the "dev_mutex" in the > functions(listed above) where I am using it. Do you have a pointer to your code so that we can see exactly what you are trying to do? thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html