Files
linux/drivers/block
Bart Van Assche 1a8f4a4908 brd: Fix discard request processing
commit 5e4298be45 upstream.

Avoid that discard requests with size => PAGE_SIZE fail with
-EIO. Refuse discard requests if the discard size is not a
multiple of the page size.

Fixes: 2dbe549576 ("brd: Refuse improperly aligned discard requests")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Jan Kara <jack@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Robert Elliot <elliott@hp.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-04-12 09:08:53 -07:00
..
2016-04-12 09:08:53 -07:00
2011-08-08 11:40:15 +02:00
2005-04-16 15:20:36 -07:00
2014-08-08 15:57:28 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2015-09-23 11:01:16 -06:00
2013-11-08 09:10:30 -07:00
2009-03-26 21:15:27 +01:00