-
由 Sujit Reddy Thumma 提交于
The SYNCHRONIZE_CACHE command is a medium write command and hence can fail when the device is write protected. Avoid sending such commands by making sure that write-cache-enable is disabled even though the device claim to support it. Signed-off-by: NSujit Reddy Thumma <sthumma@codeaurora.org> Signed-off-by: NDolev Raviv <draviv@codeaurora.org> Reviewed-by: NMartin K. Petersen <martin.petersen@oracle.com> Reviewed-by: NVenkatesh Srinivas <venkateshs@google.com> Signed-off-by: NChristoph Hellwig <hch@lst.de>
2eefd57b