[PATCH 0/4] better discard support

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

 



Trying to make progress on discard again.  This is mostly aimed at the
batched discard and SCSI arrays, but the ATA work should also fit in.

Since last time the first two patches got merged in mainline so the
patch series is a bit smaller now.  The first one is new and based on
a patch from Willy - we now remove the prepare_discard function, and instead
pass the discard request down as normal FS request.  To make that
actually work nicely with the block layer we have to allocate the payload
in the caller.  From the layering POV that makes a lot more sense as that
is where the payload is allocated for all other request, and in practice
it works because the single page and single sector is enough for all
implementations that we care about now.  But it could become quite
nasty if we get an implementation that doesn't fir into this scheme.

Second patch is the separate limit for the length of discard requests
as they can and should be much larger than normal I/O requests.

Patch 3 and 4 are only included for reference to show a working setup
wit hthe block bits.  The SD patch will need quite a bit of work to
look at the unmap limits that are now in SPC.
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux