lkml.org 
[lkml]   [2004]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2.6.10-rc1 2/5] driver-model: bus_recan_devices() locking fix
On Thu, Nov 04, 2004 at 04:02:58PM +0900, Tejun Heo wrote:
> df_02_bus_rescan_devcies_fix.patch
>
> bus_rescan_devices() eventually calls device_attach() and thus
> requires write locking the corresponding bus. The original code just
> called bus_for_each_dev() which only read locks the bus. This patch
> separates __bus_for_each_dev() and __bus_for_each_drv(), which don't
> do locking themselves, out from the original functions and call them
> with read lock in the original functions and with write lock in
> bus_rescan_devices().
>
>
> Signed-off-by: Tejun Heo <tj@home-tj.org>

Thanks, I cleaned up the formatting a bit in this patch and applied it.

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.059 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site