1. 28 Oct, 2002 11 commits
    • Jens Axboe's avatar
      [PATCH] add end_request helpers that deal in bytes, not sectors · 278bdd1c
      Jens Axboe authored
      This adds an end_that_request_chunk() helper, that puts the core
      functionality in __end_that_request_first().  This one deals in bytes.
      end_that_request_first() does the 512 multiply, and then
      end_that_request_chunk() can just use it directly.
      
      This enables ide-cd to do proper dma in sizes that are not sector
      aligned.  Some of the most important CD functions (ripping audio dma,
      burning audio cds, burning raw cds) _require_ this or we will be in pio.
      That stinks.  We simply cannot use pio for these, not on writers much
      that are fast!
      278bdd1c
    • Jens Axboe's avatar
      [PATCH] request references and list deletion/insertion checking · 6f04a530
      Jens Axboe authored
      o Always use list_del_init() on request queuelist, this allows us to
        sanity check the integrity of the request on insertion and removal.
        So we can complain loudly instead of silently corrupting memory.
      
      o Add references to requests. This is cheap, since we dont have to use
        an atomic variable for it (all puts are inside queue lock). We've had
        a bug in IDE for years where we want to inspect request state after
        io completion, but this is not possible to do race free right now.
        REQ_BLOCK_PC and sgio will need this too, for checking io residual
        etc. This is not just a theoretical race, I've seen it happen.
      6f04a530
    • Jens Axboe's avatar
      [PATCH] queue last_merge hint cleanup · c5868eb7
      Jens Axboe authored
      Cleanup the last_merge logic. There are two reasons for clearing
      last_merge when we are dealing with integrity, and these are:
      
      o Clear when handing the request to the driver, so we don't merge on
        a started request.
      
      o Clear when a request is taken off the list. This cannot be done from
        the driver (above case would already have been hit), but it can
        happen
        when we merge two requests.
      
      This makes it a lot nicer, it was always peculiar how we cleared in
      put_request.
      c5868eb7
    • Jens Axboe's avatar
      [PATCH] queue dma alignment · ad519c69
      Jens Axboe authored
      Make it possible for a device to specify the dma alignment restrictions
      it has. This will be used by future infrastructure when mapping in user
      pages, and allows us to dma to on ATAPI even though user address and
      length is not sector size aligned.
      ad519c69
    • Jens Axboe's avatar
      [PATCH] make queue prep_rq_fn() a bit more powerful · 0717c0a9
      Jens Axboe authored
      Extend q->prep_rq_fn() to return one of three values:
      
       o BLKPREP_OK: request is good, return it
       o BLKPREP_KILL: request is bad, end it completely
       o BLKPREP_DEFER: request is good, but we can't take it now
      
      We maintain compatability with old prep functions (if any, outside of
      ide-cd). This change is needed or SCSI to use prep function for command
      init, if sg table allocation fails we can just defer the request.
      0717c0a9
    • Jens Axboe's avatar
      [PATCH] make blk_dump_rq_flags a bit more useful · 8c1f67fa
      Jens Axboe authored
      Add some missing bits, and make it generally a bit more useful outside
      of REQ_PC requests.
      8c1f67fa
    • Jens Axboe's avatar
      [PATCH] elv_add_request cleanups · 86b9d08b
      Jens Axboe authored
      Request insertion in the current tree is a mess. We have all sorts of
      variants of *elv_add_request*, and it's not at all clear who does what
      and with what locks (or not). This patch cleans it up to be:
      
      o __elv_add_request(queue, request, at_end, plug)
            Core function, requires queue lock to be held
      
      o elv_add_request(queue, request, at_end, plug)
            Like __elv_add_request(), but grabs queue lock
      
      o __elv_add_request_pos(queue, request, position)
            Insert request at a given location, lock must be held
      86b9d08b
    • Jens Axboe's avatar
      [PATCH] sr_ioctl must return -EIO, not -EINVAL · 6d94d882
      Jens Axboe authored
      We must return -EIO if the command fails (the 5/20/00 sense check is
      just helping return more sane info), not -EINVAL. Getting -EINVAL return
      on an ioctl if a command fails is less than helpful for applications...
      6d94d882
    • Jens Axboe's avatar
      [PATCH] end_io bouncing · d50059ec
      Jens Axboe authored
      o Split blk_queue_bounce() into a slow and fast path. The fast path is
        inlined, only if we actually need to check the bio for possible
        bounces (and bounce) do we enter __blk_queue_bounce() slow path.
      
      o Fix a nasty bug that could cause corruption for file systems not
        using PAGE_CACHE_SIZE blok size! We were not correctly setting the
        'to' bv_offset correctly.
      
      o Add BIO_BOUNCE flag. Later patches will use this for debug checking.
      d50059ec
    • Jens Axboe's avatar
      [PATCH] make deadline_merge prefetch next entry · 1b59d3cb
      Jens Axboe authored
      Make deadline_merge() prefetch the next entry on the list.
      1b59d3cb
    • Manfred Spraul's avatar
      [PATCH] use correct wakeups in fs/pipe.c · 88591b7f
      Manfred Spraul authored
      wake_up_interruptible() and _sync() calls are reversed in pipe_read().
      
      The attached patches only calls _sync if a schedule() call follows.
      88591b7f
  2. 18 Oct, 2002 29 commits