]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen-blkback: Implement discard requests ('feature-discard')
authorLi Dongyang <lidongyang@novell.com>
Thu, 1 Sep 2011 10:39:10 +0000 (18:39 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 2 Sep 2011 13:31:39 +0000 (09:31 -0400)
commit65d7b5e6783642248f54cea7870acc2e6e9c7307
treec58213197e4e7544f39f43e5b2936e14601e0077
parent7c3929e17b38ef8dfa70b97a47b4e4b386d76f77
xen-blkback: Implement discard requests ('feature-discard')

..aka ATA TRIM/SCSI UNMAP command to be passed through the frontend
and used as appropiately by the backend. We also advertise
certain granulity parameters to the frontend so it can plug them in.
If the backend is a realy device - we just end up using
'blkdev_issue_discard' while for loopback devices - we just punch
a hole in the image file.

Signed-off-by: Li Dongyang <lidongyang@novell.com>
[v1: Fixed up pr_debug and commit description]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/block/xen-blkback/blkback.c
drivers/block/xen-blkback/common.h
drivers/block/xen-blkback/xenbus.c