Skip to content

Commit

Permalink
sd: Fail discard requests when logical block provisioning has been di…
Browse files Browse the repository at this point in the history
…sabled

Ensure that we kill discard requests after logical block provisioning
has been disabled in sysfs.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Martin K. Petersen authored and Linus Torvalds committed Mar 22, 2011
1 parent c62b389 commit 09b9cc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ static int scsi_setup_discard_cmnd(struct scsi_device *sdp, struct request *rq)
break;

default:
ret = BLKPREP_KILL;
goto out;
}

Expand Down

0 comments on commit 09b9cc4

Please sign in to comment.