Re: [PATCH] Add support for DPO in READ/WRITE/VERIFY10/12/16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 4 Mar 2012 09:40:07 +1100
ronnie sahlberg <ronniesahlberg@xxxxxxxxx> wrote:

> From 38feafe65af95df0e0497df51df18d7ab81e2997 Mon Sep 17 00:00:00 2001
> From: Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx>
> Date: Sun, 4 Mar 2012 09:33:48 +1100
> Subject: [PATCH] DPO: Add emulation of DPO bit for READ/WRITE/VERIFY10/12/16
> 
> When the DPO bit is set to 1, this is an indication the initiator will not
> reference the data again.
> For this case, call posix_fadvise() and let the kernel know it may
> expunge this data from the page cache.
> 
> From SBC READ10 :
> 
> NOTE 11 - The DPO bit is used to control replacement of logical blocks in the cache when the application
> client has information on the future usage of the logical blocks. If the DPO bit is set to one, the application
> client is specifying that the logical blocks accessed by the command are not likely to be accessed again in the
> near future and should not be put in the cache nor retained by the cache. If the DPO bit is set to zero, the
> application client is specifying that the logical blocks accessed by this command are likely to be accessed
> again in the near future.
> 
> Signed-off-by: Ronnie Sahlberg <ronniesahlberg@xxxxxxxxx>
> ---
>  usr/bs_rdwr.c |   13 +++++++++++++
>  1 files changed, 13 insertions(+), 0 deletions(-)

Looks fine. Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux