summaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe/aoenet.c
diff options
context:
space:
mode:
authorPaul Clements2012-10-05 02:16:18 +0200
committerLinus Torvalds2012-10-05 20:05:24 +0200
commita336d29870f8a1f8e5f10d9f1aa95531c4edeabe (patch)
tree9957b7a2dbdc5047fe1f2be7907f90f5bdb6fbf0 /drivers/block/aoe/aoenet.c
parentnbd: add set flags ioctl (diff)
downloadkernel-qcow2-linux-a336d29870f8a1f8e5f10d9f1aa95531c4edeabe.tar.gz
kernel-qcow2-linux-a336d29870f8a1f8e5f10d9f1aa95531c4edeabe.tar.xz
kernel-qcow2-linux-a336d29870f8a1f8e5f10d9f1aa95531c4edeabe.zip
nbd: handle discard requests
Add discard support to nbd. If the nbd-server supports discard, it will send NBD_FLAG_SEND_TRIM to the client. The client will then set the flag in the kernel via NBD_SET_FLAGS, which tells the kernel to enable discards for the device (QUEUE_FLAG_DISCARD). If discard support is enabled, then when the nbd client system receives a discard request, this will be passed along to the nbd-server. When the discard request is received by the nbd-server, it will perform: fallocate(.. FALLOC_FL_PUNCH_HOLE ..) To punch a hole in the backend storage, which is no longer needed. Signed-off-by: Paul Clements <paul.clements@steeleye.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block/aoe/aoenet.c')
0 files changed, 0 insertions, 0 deletions