Bug 1082675
Summary: | targetcli set attribute emulate_write_cache=1 is ignored | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Eric Murphy <emurphy> |
Component: | kernel | Assignee: | Maurizio Lombardi <mlombard> |
Status: | CLOSED NOTABUG | QA Contact: | Bruno Goncalves <bgoncalv> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0 | CC: | agrover, yanwang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-07-27 11:26:26 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Eric Murphy
2014-03-31 15:24:23 UTC
The change being ignored is not a bug, I found more information in journalctl. There should still be more information about why the change was ignored from within the targetcli program. From journalctl: Mar 31 10:19:18 testsan01.localhost.local kernel: emulate_write_cache cannot be changed when underlying HW reports WriteCacheEnabled, ignoring request The kernel code is returning a success error value but printing that message, so there's no way for targetcli to know anything went wrong. We probably want to change the kernel to return an error code (EINVAL) in this case. I think this is an intended behaviour. copy pasting from the rtslib library commit b0c41a578bb43db1e787106c2dbc2b46465476a5 Do not set emulate_write_cache based on write_back param for block Since the kernel's d0c8b259f (in 3.9+), setting emulate_write_cache for block backstores has not done anything -- the kernel now actually uses the queue's REQ_FLUSH flag. No longer set this attribute, but keep the parameter for backwards compatibility. I will close this bug. |