Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
39509e47
Commit
39509e47
authored
Dec 19, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-scsi.bkbits.net/scsi-for-linus-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
6484567f
aada1970
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
37 additions
and
50 deletions
+37
-50
Documentation/scsi/ChangeLog.megaraid
Documentation/scsi/ChangeLog.megaraid
+7
-0
drivers/scsi/aacraid/linit.c
drivers/scsi/aacraid/linit.c
+1
-2
drivers/scsi/imm.c
drivers/scsi/imm.c
+4
-0
drivers/scsi/megaraid/megaraid_ioctl.h
drivers/scsi/megaraid/megaraid_ioctl.h
+1
-1
drivers/scsi/megaraid/megaraid_mm.c
drivers/scsi/megaraid/megaraid_mm.c
+20
-16
drivers/scsi/megaraid/megaraid_mm.h
drivers/scsi/megaraid/megaraid_mm.h
+2
-3
drivers/scsi/qla2xxx/qla_rscn.c
drivers/scsi/qla2xxx/qla_rscn.c
+0
-26
drivers/scsi/sd.c
drivers/scsi/sd.c
+1
-1
drivers/scsi/sr.c
drivers/scsi/sr.c
+1
-1
No files found.
Documentation/scsi/ChangeLog.megaraid
View file @
39509e47
Release Date : Thu Dec 9 19:02:14 EST 2004 - Sreenivas Bagalkote <sreenib@lsil.com>
Current Version : 2.20.4.1 (scsi module), 2.20.2.3 (cmm module)
Older Version : 2.20.4.1 (scsi module), 2.20.2.2 (cmm module)
i. Fix a bug in kioc's dma buffer deallocation
Release Date : Thu Nov 4 18:24:56 EST 2004 - Sreenivas Bagalkote <sreenib@lsil.com>
Release Date : Thu Nov 4 18:24:56 EST 2004 - Sreenivas Bagalkote <sreenib@lsil.com>
Current Version : 2.20.4.1 (scsi module), 2.20.2.2 (cmm module)
Current Version : 2.20.4.1 (scsi module), 2.20.2.2 (cmm module)
...
...
drivers/scsi/aacraid/linit.c
View file @
39509e47
...
@@ -663,10 +663,9 @@ static void __devexit aac_remove_one(struct pci_dev *pdev)
...
@@ -663,10 +663,9 @@ static void __devexit aac_remove_one(struct pci_dev *pdev)
kfree
(
aac
->
fibs
);
kfree
(
aac
->
fibs
);
list_del
(
&
aac
->
entry
);
scsi_host_put
(
shost
);
scsi_host_put
(
shost
);
pci_disable_device
(
pdev
);
pci_disable_device
(
pdev
);
list_del
(
&
aac
->
entry
);
}
}
static
struct
pci_driver
aac_pci_driver
=
{
static
struct
pci_driver
aac_pci_driver
=
{
...
...
drivers/scsi/imm.c
View file @
39509e47
...
@@ -1140,6 +1140,10 @@ static struct scsi_host_template imm_template = {
...
@@ -1140,6 +1140,10 @@ static struct scsi_host_template imm_template = {
.
use_clustering
=
ENABLE_CLUSTERING
,
.
use_clustering
=
ENABLE_CLUSTERING
,
.
can_queue
=
1
,
.
can_queue
=
1
,
.
slave_alloc
=
imm_adjust_queue
,
.
slave_alloc
=
imm_adjust_queue
,
.
unchecked_isa_dma
=
1
,
/* imm cannot deal with highmem, so
* this is an easy trick to ensure
* all io pages for this host reside
* in low memory */
};
};
/***************************************************************************
/***************************************************************************
...
...
drivers/scsi/megaraid/megaraid_ioctl.h
View file @
39509e47
...
@@ -142,7 +142,7 @@ typedef struct uioc {
...
@@ -142,7 +142,7 @@ typedef struct uioc {
caddr_t
buf_vaddr
;
caddr_t
buf_vaddr
;
dma_addr_t
buf_paddr
;
dma_addr_t
buf_paddr
;
u
int8_t
pool_index
;
int8_t
pool_index
;
uint8_t
free_buf
;
uint8_t
free_buf
;
uint8_t
timedout
;
uint8_t
timedout
;
...
...
drivers/scsi/megaraid/megaraid_mm.c
View file @
39509e47
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* 2 of the License, or (at your option) any later version.
* 2 of the License, or (at your option) any later version.
*
*
* FILE : megaraid_mm.c
* FILE : megaraid_mm.c
* Version : v2.20.2.
2 (Nov 04
2004)
* Version : v2.20.2.
3 (Dec 09
2004)
*
*
* Common management module
* Common management module
*/
*/
...
@@ -614,23 +614,27 @@ mraid_mm_dealloc_kioc(mraid_mmadp_t *adp, uioc_t *kioc)
...
@@ -614,23 +614,27 @@ mraid_mm_dealloc_kioc(mraid_mmadp_t *adp, uioc_t *kioc)
mm_dmapool_t
*
pool
;
mm_dmapool_t
*
pool
;
unsigned
long
flags
;
unsigned
long
flags
;
if
(
kioc
->
pool_index
!=
-
1
)
{
pool
=
&
adp
->
dma_pool_list
[
kioc
->
pool_index
];
pool
=
&
adp
->
dma_pool_list
[
kioc
->
pool_index
];
/* This routine may be called in non-isr context also */
/* This routine may be called in non-isr context also */
spin_lock_irqsave
(
&
pool
->
lock
,
flags
);
spin_lock_irqsave
(
&
pool
->
lock
,
flags
);
/*
/*
* While attaching the dma buffer, if we didn't get the required
* While attaching the dma buffer, if we didn't get the
* buffer from the pool, we would have allocated it at the run time
* required buffer from the pool, we would have allocated
* and set the free_buf flag. We must free that buffer. Otherwise,
* it at the run time and set the free_buf flag. We must
* just mark that the buffer is not in use
* free that buffer. Otherwise, just mark that the buffer is
* not in use
*/
*/
if
(
kioc
->
free_buf
==
1
)
if
(
kioc
->
free_buf
==
1
)
pci_pool_free
(
pool
->
handle
,
kioc
->
buf_vaddr
,
kioc
->
buf_paddr
);
pci_pool_free
(
pool
->
handle
,
kioc
->
buf_vaddr
,
kioc
->
buf_paddr
);
else
else
pool
->
in_use
=
0
;
pool
->
in_use
=
0
;
spin_unlock_irqrestore
(
&
pool
->
lock
,
flags
);
spin_unlock_irqrestore
(
&
pool
->
lock
,
flags
);
}
/* Return the kioc to the free pool */
/* Return the kioc to the free pool */
spin_lock_irqsave
(
&
adp
->
kioc_pool_lock
,
flags
);
spin_lock_irqsave
(
&
adp
->
kioc_pool_lock
,
flags
);
...
...
drivers/scsi/megaraid/megaraid_mm.h
View file @
39509e47
...
@@ -29,10 +29,9 @@
...
@@ -29,10 +29,9 @@
#include "megaraid_ioctl.h"
#include "megaraid_ioctl.h"
#define LSI_COMMON_MOD_VERSION "2.20.2.
2
"
#define LSI_COMMON_MOD_VERSION "2.20.2.
3
"
#define LSI_COMMON_MOD_EXT_VERSION \
#define LSI_COMMON_MOD_EXT_VERSION \
"(Release Date: Thu Nov 4 17:46:29 EST 2004)"
"(Release Date: Thu Dec 9 19:02:14 EST 2004)"
#define LSI_DBGLVL dbglevel
#define LSI_DBGLVL dbglevel
...
...
drivers/scsi/qla2xxx/qla_rscn.c
View file @
39509e47
...
@@ -47,8 +47,6 @@
...
@@ -47,8 +47,6 @@
/* Local Prototypes. */
/* Local Prototypes. */
static
inline
uint32_t
qla2x00_to_handle
(
uint16_t
,
uint16_t
,
uint16_t
);
static
inline
uint32_t
qla2x00_to_handle
(
uint16_t
,
uint16_t
,
uint16_t
);
static
inline
uint16_t
qla2x00_handle_to_idx
(
uint32_t
);
static
inline
uint16_t
qla2x00_handle_to_idx
(
uint32_t
);
static
inline
uint16_t
qla2x00_handle_to_iter
(
uint32_t
);
static
inline
uint16_t
qla2x00_handle_to_type
(
uint32_t
);
static
inline
uint32_t
qla2x00_iodesc_to_handle
(
struct
io_descriptor
*
);
static
inline
uint32_t
qla2x00_iodesc_to_handle
(
struct
io_descriptor
*
);
static
inline
struct
io_descriptor
*
qla2x00_handle_to_iodesc
(
scsi_qla_host_t
*
,
static
inline
struct
io_descriptor
*
qla2x00_handle_to_iodesc
(
scsi_qla_host_t
*
,
uint32_t
);
uint32_t
);
...
@@ -129,30 +127,6 @@ qla2x00_handle_to_idx(uint32_t handle)
...
@@ -129,30 +127,6 @@ qla2x00_handle_to_idx(uint32_t handle)
return
((
uint16_t
)(((
handle
)
>>
HDL_INDEX_SHIFT
)
&
HDL_INDEX_MASK
));
return
((
uint16_t
)(((
handle
)
>>
HDL_INDEX_SHIFT
)
&
HDL_INDEX_MASK
));
}
}
/**
* qla2x00_handle_to_type() - Retrive the descriptor type for a given handle.
* @handle: descriptor handle
*
* Returns the descriptor type specified by the @handle.
*/
static
inline
uint16_t
qla2x00_handle_to_type
(
uint32_t
handle
)
{
return
((
uint16_t
)(((
handle
)
>>
HDL_TYPE_SHIFT
)
&
HDL_TYPE_MASK
));
}
/**
* qla2x00_handle_to_iter() - Retrive the rolling signature for a given handle.
* @handle: descriptor handle
*
* Returns the signature specified by the @handle.
*/
static
inline
uint16_t
qla2x00_handle_to_iter
(
uint32_t
handle
)
{
return
((
uint16_t
)(((
handle
)
>>
HDL_ITER_SHIFT
)
&
HDL_ITER_MASK
));
}
/**
/**
* qla2x00_iodesc_to_handle() - Convert an IO descriptor to a unique handle.
* qla2x00_iodesc_to_handle() - Convert an IO descriptor to a unique handle.
* @iodesc: io descriptor
* @iodesc: io descriptor
...
...
drivers/scsi/sd.c
View file @
39509e47
...
@@ -198,8 +198,8 @@ static struct scsi_disk *scsi_disk_get(struct gendisk *disk)
...
@@ -198,8 +198,8 @@ static struct scsi_disk *scsi_disk_get(struct gendisk *disk)
static
void
scsi_disk_put
(
struct
scsi_disk
*
sdkp
)
static
void
scsi_disk_put
(
struct
scsi_disk
*
sdkp
)
{
{
down
(
&
sd_ref_sem
);
down
(
&
sd_ref_sem
);
scsi_device_put
(
sdkp
->
device
);
kref_put
(
&
sdkp
->
kref
,
scsi_disk_release
);
kref_put
(
&
sdkp
->
kref
,
scsi_disk_release
);
scsi_device_put
(
sdkp
->
device
);
up
(
&
sd_ref_sem
);
up
(
&
sd_ref_sem
);
}
}
...
...
drivers/scsi/sr.c
View file @
39509e47
...
@@ -156,8 +156,8 @@ static inline struct scsi_cd *scsi_cd_get(struct gendisk *disk)
...
@@ -156,8 +156,8 @@ static inline struct scsi_cd *scsi_cd_get(struct gendisk *disk)
static
inline
void
scsi_cd_put
(
struct
scsi_cd
*
cd
)
static
inline
void
scsi_cd_put
(
struct
scsi_cd
*
cd
)
{
{
down
(
&
sr_ref_sem
);
down
(
&
sr_ref_sem
);
scsi_device_put
(
cd
->
device
);
kref_put
(
&
cd
->
kref
,
sr_kref_release
);
kref_put
(
&
cd
->
kref
,
sr_kref_release
);
scsi_device_put
(
cd
->
device
);
up
(
&
sr_ref_sem
);
up
(
&
sr_ref_sem
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment