Revision 9bc6548f372d8c829235095d91de99d8df79db6e authored by Christophe Vu-Brugier on 19 March 2015, 13:30:13 UTC, committed by Nicholas Bellinger on 20 March 2015, 06:26:46 UTC
A check that rejects a CDB with FUA bit set if no write cache is emulated was added by the following commit: fde9f50 target: Add sanity checks for DPO/FUA bit usage The condition is as follows: if (!dev->dev_attrib.emulate_fua_write || !dev->dev_attrib.emulate_write_cache) However, this check is wrong if the backend device supports WCE but "emulate_write_cache" is disabled. This patch uses se_dev_check_wce() (previously named spc_check_dev_wce) to invoke transport->get_write_cache() if the device has a write cache or check the "emulate_write_cache" attribute otherwise. Reported-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1 parent 5f7da04
File | Mode | Size |
---|---|---|
dmasound | ||
.gitignore | -rw-r--r-- | 47 bytes |
CHANGELOG | -rw-r--r-- | 13.4 KB |
Kconfig | -rw-r--r-- | 19.1 KB |
Makefile | -rw-r--r-- | 3.3 KB |
README.FIRST | -rw-r--r-- | 246 bytes |
ad1848.c | -rw-r--r-- | 74.1 KB |
ad1848.h | -rw-r--r-- | 982 bytes |
ad1848_mixer.h | -rw-r--r-- | 10.7 KB |
aedsp16.c | -rw-r--r-- | 35.6 KB |
audio.c | -rw-r--r-- | 25.0 KB |
bin2hex.c | -rw-r--r-- | 755 bytes |
coproc.h | -rw-r--r-- | 361 bytes |
dev_table.c | -rw-r--r-- | 5.5 KB |
dev_table.h | -rw-r--r-- | 10.6 KB |
dmabuf.c | -rw-r--r-- | 34.9 KB |
hex2hex.c | -rw-r--r-- | 1.9 KB |
kahlua.c | -rw-r--r-- | 4.9 KB |
midi_ctrl.h | -rw-r--r-- | 1.0 KB |
midi_synth.c | -rw-r--r-- | 14.8 KB |
midi_synth.h | -rw-r--r-- | 1.7 KB |
midibuf.c | -rw-r--r-- | 8.6 KB |
mpu401.c | -rw-r--r-- | 37.6 KB |
mpu401.h | -rw-r--r-- | 419 bytes |
msnd.c | -rw-r--r-- | 8.2 KB |
msnd.h | -rw-r--r-- | 7.2 KB |
msnd_classic.c | -rw-r--r-- | 122 bytes |
msnd_classic.h | -rw-r--r-- | 5.3 KB |
msnd_pinnacle.c | -rw-r--r-- | 47.5 KB |
msnd_pinnacle.h | -rw-r--r-- | 7.4 KB |
opl3.c | -rw-r--r-- | 27.0 KB |
opl3_hw.h | -rw-r--r-- | 6.9 KB |
os.h | -rw-r--r-- | 942 bytes |
pas2.h | -rw-r--r-- | 500 bytes |
pas2_card.c | -rw-r--r-- | 9.4 KB |
pas2_midi.c | -rw-r--r-- | 4.9 KB |
pas2_mixer.c | -rw-r--r-- | 7.8 KB |
pas2_pcm.c | -rw-r--r-- | 8.7 KB |
pss.c | -rw-r--r-- | 32.3 KB |
sb.h | -rw-r--r-- | 5.2 KB |
sb_audio.c | -rw-r--r-- | 26.7 KB |
sb_card.c | -rw-r--r-- | 9.7 KB |
sb_card.h | -rw-r--r-- | 5.7 KB |
sb_common.c | -rw-r--r-- | 28.9 KB |
sb_ess.c | -rw-r--r-- | 51.3 KB |
sb_ess.h | -rw-r--r-- | 887 bytes |
sb_midi.c | -rw-r--r-- | 4.3 KB |
sb_mixer.c | -rw-r--r-- | 19.3 KB |
sb_mixer.h | -rw-r--r-- | 2.1 KB |
sequencer.c | -rw-r--r-- | 33.6 KB |
sleep.h | -rw-r--r-- | 464 bytes |
sound_calls.h | -rw-r--r-- | 3.4 KB |
sound_config.h | -rw-r--r-- | 3.1 KB |
sound_firmware.h | -rw-r--r-- | 58 bytes |
sound_timer.c | -rw-r--r-- | 6.1 KB |
soundcard.c | -rw-r--r-- | 16.4 KB |
soundvers.h | -rw-r--r-- | 86 bytes |
swarm_cs4297a.c | -rw-r--r-- | 88.4 KB |
sys_timer.c | -rw-r--r-- | 5.2 KB |
trix.c | -rw-r--r-- | 10.9 KB |
tuning.h | -rw-r--r-- | 1.1 KB |
uart401.c | -rw-r--r-- | 10.4 KB |
uart6850.c | -rw-r--r-- | 7.1 KB |
ulaw.h | -rw-r--r-- | 3.2 KB |
v_midi.c | -rw-r--r-- | 6.3 KB |
v_midi.h | -rw-r--r-- | 281 bytes |
vidc.c | -rw-r--r-- | 12.1 KB |
vidc.h | -rw-r--r-- | 1.8 KB |
vidc_fill.S | -rw-r--r-- | 4.3 KB |
waveartist.c | -rw-r--r-- | 46.6 KB |
waveartist.h | -rw-r--r-- | 2.3 KB |
Computing file changes ...