lkml.org 
[lkml]   [2000]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Tentative patch: modularized disk partition systems in 2.3.99-pre2-5
Date
From
> 	This patch should allow the disk partition handlers to be
> compiled as loadable modules. The patch also has the side effect
> of simplifying fs/partitions/Makefile. At this point, I can

What stops me unloading one of the partition drivers in your patch while
the partition scan is stalled waiting for a disk block, and the box then
crashing ?

Similarly its not proofed against two parallel insmods in theory (SMP)
although I think the kernel lock covers it

> +cleanup_module(void)
> +{

How about taking a semaphore here, when registering and also
before doing the scan

> + unregister_partition_ops(&ops);

That should make everything stall until the partition scanner has finished


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

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