Re: swapon crashes computer

Manfred Spraul (masp0008@stud.uni-sb.de)
Sat, 27 Mar 1999 08:10:54 +0100


> Maybe the cleanest patch would have set_blocksize return the original
> value, so that a failed swapon can restore the original state of affairs:
I don't like read/modify/write cycles: this will sooner or later
cause problems on SMP systems. But I'll test you patch and tell you if
it
fixes the problem. (I have an UP machine)

I think that sys_swapon() and sys_mount() should use identical tests for
"device busy", currently sys_mount() only returns "busy" for
filesystems, and tries to mount swap partitions, and sys_swapon()
only checks for swap partitions and tries to mount file system
partitions.

Regards,
Manfred

-
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/