skd: remove broken discard support
authorJeff Moyer <jmoyer@redhat.com>
Tue, 26 Apr 2016 01:12:38 +0000 (19:12 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 26 Apr 2016 01:12:38 +0000 (19:12 -0600)
commit49bdedb36271fe6259dd251bb63c5879fa7834e1
treede1024f9c3f9607a08169ea0c8732c8152efeca8
parentc888a8f95ae5b1067855235b3b71c1ebccf504f5
skd: remove broken discard support

Simply creating a file system on an skd device, followed by mount and
fstrim will result in errors in the logs and then a BUG().  Let's remove
discard support from that driver.  As far as I can tell, it hasn't
worked right since it was merged.  This patch also has a side-effect of
cleaning up an unintentional shadowed declaration inside of
skd_end_request.

I tested to ensure that I can still do I/O to the device using xfstests
./check -g quick.  I didn't do anything more extensive than that,
though.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/skd_main.c