]> git.neil.brown.name Git - history.git/commit
[PATCH] adjust SG reserved size automatically
authorJens Axboe <axboe@suse.de>
Mon, 9 Aug 2004 03:28:06 +0000 (20:28 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 9 Aug 2004 03:28:06 +0000 (20:28 -0700)
commite548ad965bf72fa7e4af78dcf9d07b731338748b
tree3e7394948f5803fc6dc8ef246aa7a757fc8b4ce6
parent4ab06c9ab4babac5cea0ff25b399c216ac166df1
[PATCH] adjust SG reserved size automatically

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: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/scsi_ioctl.c