[PATCH] block: Fix bad data direction in SG_IO
authorJens Axboe <jens.axboe@oracle.com>
Mon, 13 Nov 2006 17:59:01 +0000 (17:59 +0000)
committerChris Wright <chrisw@sous-sol.org>
Sun, 19 Nov 2006 03:28:05 +0000 (19:28 -0800)
commit6d7e0615152b01b5bd1dd8c9aea5d949e50fed93
tree78f95338718cc6a2dee7d3813fb6d2eca6641d27
parent797555ff2bd8d6ae181416d8f3c1abe69a3b7363
[PATCH] block: Fix bad data direction in SG_IO

Contrary to what the name misleads you to believe, SG_DXFER_TO_FROM_DEV
is really just a normal read seen from the device side.

This patch fixes http://lkml.org/lkml/2006/10/13/100

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
block/scsi_ioctl.c