Re: [PATCH] block: allow early return of -EOPNOTSUPP from blkdev_issue_discard

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

 



On Tue, May 03, 2016 at 08:38:03PM -0400, Mike Snitzer wrote:
> Commit 38f25255330 ("block: add __blkdev_issue_discard") incorrectly
> disallowed the return of -EOPNOTSUPP if the device didn't support
> discard (or secure discard).

I assume dm relied in this?  The different handling of early vs
late -EOPNOTSUPP is the old code is rather odd, so when restoring
it I'd rather have a comment explaining why the different handling
is needed.
--
To unsubscribe from this list: send the line "unsubscribe linux-block" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux