sd: Fail discard requests when logical block provisioning has been disabled
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 22 Mar 2011 04:27:42 +0000 (00:27 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2011 16:35:53 +0000 (09:35 -0700)
commit09b9cc44c942256026bf7a63fec2155b8f488899
tree642695cd3f1622a3c52dcd6c2b941ac9b72780c9
parentc62b3898636072de4bf9af36b6cd5a920ebfe896
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: 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>
drivers/scsi/sd.c