• Jens Axboe's avatar
    [PATCH] adjust SG reserved size automatically · e548ad96
    Jens Axboe authored
    The block layer SG should have the identical behaviour as SCSI sg when
    it comes to SG_SET_RESERVED_SIZE - allow caller to specify a large
    amount, truncate to largest we support, and return that with
    SG_GET_RESERVED_SIZE.  Currently we fail with -EINVAL if the value is
    too large, I think the SCSI sg behaviour is more sane to use.  This
    one-liner fixes it up, please apply for 2.6.8.
    Signed-off-by: default avatarJens Axboe <axboe@suse.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    e548ad96
scsi_ioctl.c 10.3 KB