Commit 09b9cc44 authored by Martin K. Petersen's avatar Martin K. Petersen Committed by Linus Torvalds

sd: Fail discard requests when logical block provisioning has been disabled

Ensure that we kill discard requests after logical block provisioning
has been disabled in sysfs.
Signed-off-by: default avatarMartin K. Petersen <>
Reported-by: default avatarGeert Uytterhoeven <>
Reviewed-by: default avatarJeff Moyer <>
Signed-off-by: default avatarLinus Torvalds <>
parent c62b3898
......@@ -597,6 +597,7 @@ static int scsi_setup_discard_cmnd(struct scsi_device *sdp, struct request *rq)
goto out;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment