[PATCH] scsi: sd: configurable allow_restart attribute for all device types

Stefan Richter
2006-11-21T20:46:24Z

It is not necessary to restrict run-time configuration of sd's
allow_restart attribute to SBC disks.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---
Index: linux-2.6.19-rc6/drivers/scsi/sd.c
===================================================================
--- linux-2.6.19-rc6.orig/drivers/scsi/sd.c 2006-10-10 18:18:45.000000000 +0200
+++ linux-2.6.19-rc6/drivers/scsi/sd.c 2006-11-21 21:15:10.000000000 +0100
@@ -216,9 +216,6 @@ static ssize_t sd_store_allow_restart(st
if (!capable(CAP_SYS_ADMIN))
return -EACCES;

- if (sdp->type != TYPE_DISK)
- return -EINVAL;
-
sdp->allow_restart = simple_strtoul(buf, NULL, 10);

return count;