]> git.hungrycats.org Git - linux/commit
[PATCH] make nbd working in 2.5.x
authorDave Jones <davej@codemonkey.org.uk>
Thu, 20 Mar 2003 13:55:47 +0000 (05:55 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Thu, 20 Mar 2003 13:55:47 +0000 (05:55 -0800)
commit46f2cb79f396f634bfb1af35e642cf5e7eb418a4
tree54a23ebc801947bee9c65ab2c538e2f2cfde140e
parent5141a806dff0897bb90bf0e9a706a4f0aa30e42f
[PATCH] make nbd working in 2.5.x

From Petr Vandrovec

   we use nbd for our diskless systems, and it looks to me like that
it has some serious problems in 2.5.x... Can you apply this patch
and forward it to Linus?

There were:
* Missing disk's queue initialization
* Driver should use list_del_init: put_request now verifies
  that req->queuelist is empty, and list_del was incompatible
  with this.
* I converted nbd_end_request back to end_that_request_{first,last}
  as I saw no reason why driver should do it itself... and
  blk_put_request has no place under queue_lock, so apparently when
  semantic changed nobody went through drivers...
drivers/block/nbd.c