rwsem generic spinlock: use IRQ save/restore spinlocks
[safe/jmp/linux-2.6] / drivers / scsi / libsas / sas_host_smp.c
index be9a951..04ad8dd 100644 (file)
@@ -10,6 +10,7 @@
  */
 #include <linux/scatterlist.h>
 #include <linux/blkdev.h>
+#include <linux/slab.h>
 
 #include "sas_internal.h"
 
@@ -176,9 +177,6 @@ int sas_smp_host_handler(struct Scsi_Host *shost, struct request *req,
        resp_data[1] = req_data[1];
        resp_data[2] = SMP_RESP_FUNC_UNK;
 
-       req->resid_len = blk_rq_bytes(req);
-       rsp->resid_len = blk_rq_bytes(rsp);
-
        switch (req_data[1]) {
        case SMP_REPORT_GENERAL:
                req->resid_len -= 8;