An error occurred fetching the project authors.
- 15 Jan, 2005 3 commits
-
-
Paolo \'Blaisorblade\' Giarrusso authored
Most code of ubd_user.c already uses the os_* functions, so it can be moved to ubd_kern.c. This patch simply moves the code without any hidden changes. The only change is inside io_thread(): since it calls signal(), I created a little function in ubd_user.c which just calls signal() with the right parameters. In a later patch (send together) I'll do some changes, to fix the usage of errno (which makes this code break when moved in a kernelspace file) and for some other little cleanups. Signed-off-by:
Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
Paolo \'Blaisorblade\' Giarrusso authored
When parsing the <flags> section in ubd<n><flags>=file[,file2], instead of requiring that the flags are specified in a certain order, just make the code smarter. Signed-off-by:
Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
Paolo \'Blaisorblade\' Giarrusso authored
Currently we can use this syntax ubd<n>[<flags>]=file1,file2. However, writing things as ubd0=~/Uml/file1,~/Uml/file2 does not work; in fact, the shell won't expand the second '~', since it's not at a path beginning; possibly even other shell expansions don't work here. So simply allow using, instead of the ',' separator, the ':' separator. The ',' separator can still be used to preserve backward compatibility. Signed-off-by:
Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
- 11 Jan, 2005 1 commit
-
-
Jeff Dike authored
Lots of sparse annotations from Chris Wright. Signed-off-by:
Jeff Dike <jdike@addtoit.com> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
- 03 Jan, 2005 1 commit
-
-
Gerd Knorr authored
Signed-off-by:
Gerd Knorr <kraxel@bytesex.org> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
- 13 Oct, 2004 2 commits
-
-
Paolo \'Blaisorblade\' Giarrusso authored
Currently, ubd=sync is different from replacing ubd#= with ubd#s=. This is against Principle of Least Surprise, so remove this difference. Also the current ubd=sync behaviour is completely useless: it is to make sure that when the kernel has synched its I/O to the virtual disk, the host does not invalidate this with his caching; this causes ReiserFS corruption. But since actually we call end_request() only after the io_thread has done its work, we never lie to the block layer. Using O_SYNC as we do when replacing ubd#= with ubd#s= is enough. Signed-off-by:
Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
Paolo \'Blaisorblade\' Giarrusso authored
From: BlaisorBlade <blaisorblade_spam@yahoo.it>, Chris Wright <chrisw@osdl.org> Avoid deadlocking onto the request lock in the UBD driver, i.e. don't lock the queue spinlock when called from the request function. In detail: Rename ubd_finish() to __ubd_finish() and remove ubd_io_lock from it. Add wrapper, ubd_finish(), which grabs lock before calling __ubd_finish(). Update do_ubd_request to use the lock free __ubd_finish() to avoid deadlock. Also, apparently prepare_request is called with ubd_io_lock held, so remove locks there. Signed-off-by:
Chris Wright <chrisw@osdl.org> Signed-off-by:
Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
- 24 Sep, 2004 2 commits
-
-
Jeff Dike authored
Make sure we print ERRNO and not always -1. Signed-off-by:
Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by:
Jeff Dike <jdike@addtoit.com> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
Jeff Dike authored
Simple corrections to some error messages, which list wrong limits for UBD devices and such. Signed-off-by:
Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by:
Jeff Dike <jdike@addtoit.com> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
- 17 Sep, 2004 1 commit
-
-
Jeff Dike authored
The UML block driver had some useless ioctls in it somehow. This gets rid of them. Signed-off-by:
Jeff Dike <jdike@addtoit.com> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
- 08 Sep, 2004 2 commits
-
-
Paolo \'Blaisorblade\' Giarrusso authored
Avoid forcing use of the no-op scheduler for UBD; this may uncover some bugs in the UBD driver, and in fact uml-ubd-no-empty-queue.patch is needed to make this sure. But as of now, no other bugs have been discovered, so this should be safe. Signed-off-by:
Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
Paolo \'Blaisorblade\' Giarrusso authored
Avoid using, in the UBD driver, the elv_queue_empty function. It's for the block layer only; in fact, the Anticipatory Scheduler can return NULL with elv_next_request() even if the queue is not empty, because it waits for the process to send another request before seeking on the disk. In fact, if (with uml-ubd-any-elevator) we let UBD use any scheduler, elevator=as will make the UBD driver Oops, if we don't have this patch. Signed-off-by:
Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
- 24 Aug, 2004 1 commit
-
-
Paolo \'Blaisorblade\' Giarrusso authored
The main part of UML; it is the last distributed patch for 2.6.7 Removes skas support from the main UML patch; apply or get conflicts. Signed-off-by:
Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
-
- 05 Sep, 2003 1 commit
-
-
Alexander Viro authored
misc trivial cleanups
-
- 06 Aug, 2003 1 commit
-
-
Jens Axboe authored
To be able to properly be able to keep references to block queues, we make blk_init_queue() return the queue that it initialized, and let it be independently allocated and then cleaned up on the last reference. I have grepped high and low, and there really shouldn't be any broken uses of blk_init_queue() in the kernel drivers left. The added bonus being blk_init_queue() error checking is explicit now, most of the drivers were broken in this regard (even IDE/SCSI). No drivers have embedded request queue structures. Drivers that don't use blk_init_queue() but blk_queue_make_request(), should allocate the queue with blk_alloc_queue(gfp_mask). I've converted all of them to do that, too. They can call blk_cleanup_queue() now too, using the define blk_put_queue() is probably cleaner though.
-
- 17 Jul, 2003 1 commit
-
-
Adrian Bunk authored
This causes blk.h to print a warning and removes all uses of blk.h. I've tested the compilation in 2.6.0-test1 with a .config that tries to compile as many drivers as possible.
-
- 20 Apr, 2003 2 commits
-
-
Christoph Hellwig authored
Duh, ubd is partitioned.
-
Christoph Hellwig authored
-
- 23 Mar, 2003 2 commits
-
-
Christoph Hellwig authored
Avoid a bunch of non-NULL first arguments.
-
Christoph Hellwig authored
All arguments except the name are unused - remove them and make the name printf-like to avoid a few snprintf in the surrounding code. (also fixes compilation to due a superflous endif in dvb core)
-
- 21 Mar, 2003 1 commit
-
-
Christoph Hellwig authored
Devfs tries to be super smart and rereads partition tables at all kinds of wierd points. This breaks a bunch of stuff were you can't get the right disk changed information (i.e. CompactFlash). If people actually need this kind of stuff they should just call partx from devfsd instead of relying on the kernel doing something like this. Cleans up the devfs code significatnly (aka removes tons of junk)
-
- 08 Mar, 2003 1 commit
-
-
Andrew Morton authored
Patch from Andries.Brouwer@cwi.nl The following patch does the following: - static const char *blkdevs[MAX_BLKDEV]; disappears - get_blkdev_list, (un)register_blkdev, __bdevname are moved from block_dev.c to genhd.c - the third "fops" parameter of register_blkdev was unused; now removed everywhere - zillions of places had printk("cannot get major") upon error return from register_blkdev; removed all of these and inserted a single printk in register_blkdev. Of course the reason for the patch is that one fixed size array is eliminated.
-
- 18 Jan, 2003 1 commit
-
-
Jeff Dike authored
All userspace uses of CONFIG_* have been changed to UML_CONFIG_* to avoid conflicts with the host's config. os_open_file now has FD_CLOEXEC support.
-
- 28 Dec, 2002 1 commit
-
-
Jeff Dike authored
-
- 18 Nov, 2002 2 commits
- 19 Oct, 2002 2 commits
- 18 Oct, 2002 1 commit
-
-
Alexander Viro authored
* switched to private queue * set ->queue and ->private_data * switched to new methods * switched to use of ->bd_disk and ->rq_disk
-
- 17 Oct, 2002 1 commit
-
-
Jeff Dike authored
The port and xterm drivers handle -EAGAIN from os_rcv_fd gracefully, fixing a crash in the xterm driver. The ubd driver handles devfs_register failures better. More symbols were exported.
-
- 16 Oct, 2002 1 commit
-
-
Jeff Dike authored
to 2.5.43. Added some Makefile fixes so the build works. Brought the xterm not hanging fix from 2.4. Updated the signal code from 2.4. Fixed port_interrupt to not allocate IRQs. The idle threads for the secondary processors are now killed off on shutdown. Some rwlock symbols are exported. Added a system call entry for lookup_dcookie.
-
- 15 Oct, 2002 3 commits
-
-
Alexander Viro authored
Quite a few drivers don't need ->open() anymore - all it did was checking that minor is good (== gendisk exists). That is handled by generic code now...
-
Alexander Viro authored
allocation of ->part[] moved to alloc_disk(); alloc_disk() got an argument (number of minors expected). Freeing is in put_disk().
-
Jeff Dike authored
-
- 14 Oct, 2002 1 commit
-
-
Jeff Dike authored
Locking was added where necessary. All processors take timer interrupts, but only CPU 0 calls the timer IRQ. The others just call update_process_times to keep the accounting straight. The timer interrupt is blocked along with the other signals.
-
- 13 Oct, 2002 1 commit
-
-
Jeff Dike authored
The tempfile code is in its own file. A bunch of unused stuff is now gone. A bunch of code that could be called from the tracing thread was made safe for that to happen.
-
- 07 Oct, 2002 2 commits
- 05 Oct, 2002 1 commit
-
-
Alexander Viro authored
-
- 02 Oct, 2002 1 commit
-
-
Jeff Dike authored
-