[PATCH 2/3] scsi: Return ENOSPC on thin provisioning failure

2013-06-06 Thread Hannes Reinecke
When the thin provisioning hard threshold is reached we should return ENOSPC to inform upper layers about this fact. Signed-off-by: Hannes Reinecke h...@suse.de --- block/blk-core.c | 3 +++ drivers/scsi/scsi_error.c | 12 +++- drivers/scsi/scsi_lib.c | 5 +

[PATCH 2/3] scsi: Return ENOSPC on thin provisioning failure

2013-06-05 Thread Hannes Reinecke
When the thin provisioning hard threshold is reached we should return ENOSPC to inform upper layers about this fact. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/scsi_error.c | 12 +++- drivers/scsi/scsi_lib.c | 5 + include/scsi/scsi.h | 2 ++ 3 files