Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Device-mapper Development (http://www.linux-archive.org/device-mapper-development/)
-   -   block: update request stacking methods to support discards (http://www.linux-archive.org/device-mapper-development/403529-block-update-request-stacking-methods-support-discards.html)

Christoph Hellwig 07-24-2010 06:43 AM

block: update request stacking methods to support discards
 
> + if (blk_discard_rq(rq))
> + return 0;

The blk_discard_rq helper is gone in the block tree.

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Christoph Hellwig 07-27-2010 02:54 PM

block: update request stacking methods to support discards
 
On Sat, Jul 24, 2010 at 12:09:26PM -0400, Mike Snitzer wrote:
> Propagate REQ_DISCARD in cmd_flags when cloning a discard request.
> Skip blk_rq_check_limits's existing checks for discard requests because
> discard limits will have already been checked in blkdev_issue_discard.

Looks good,


Reviewed-by: Christoph Hellwig <hch@lst.de>

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel


All times are GMT. The time now is 08:22 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.