Linus Torvalds 09c0dc6862 Revert "[PATCH] kthread: update loop.c to use kthread"
This reverts commit c7b2eff059fcc2d1b7085ee3d84b79fd657a537b.

Hugh Dickins explains:

 "It seems too little tested: "losetup -d /dev/loop0" fails with
  EINVAL because nothing sets lo_thread; but even when you patch
  loop_thread() to set lo->lo_thread = current, it can't survive
  more than a few dozen iterations of the loop below (with a tmpfs
  mounted on /tst):

	j=0
	cp /dev/zero /tst
	while :
	do
	    let j=j+1
	    echo "Doing pass $j"
	    losetup /dev/loop0 /tst/zero
	    mkfs -t ext2 -b 1024 /dev/loop0 >/dev/null 2>&1
	    mount -t ext2 /dev/loop0 /mnt
	    umount /mnt
	    losetup -d /dev/loop0
	done

  it collapses with failed ioctl then BUG_ON(!bio).

  I think the original lo_done completion was more subtle and safe
  than the kthread conversion has allowed for."

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-26 11:55:42 -07:00
..
2006-06-26 10:51:09 -07:00
2006-06-20 01:21:29 -07:00
2006-06-26 09:58:17 -07:00
2006-06-25 10:01:16 -07:00
2006-06-23 07:43:06 -07:00
2006-06-23 08:47:27 -07:00
2006-05-03 20:05:41 -07:00
2006-06-20 01:21:29 -07:00
2006-06-26 09:58:18 -07:00
2006-06-19 13:06:05 +01:00
2006-06-25 23:14:53 -07:00
2006-06-26 10:48:22 -07:00
2006-06-19 15:37:31 +01:00
2006-06-25 10:01:14 -07:00
2006-06-26 09:58:18 -07:00
2006-06-23 07:43:06 -07:00
2006-06-17 21:18:43 -07:00