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
0fe11f99
Commit
0fe11f99
authored
Oct 28, 2002
by
Alexander Viro
Committed by
James Bottomley
Oct 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] dasd.c
* switched to private queues * set ->queue
parent
042e7783
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
29 deletions
+5
-29
drivers/s390/block/dasd.c
drivers/s390/block/dasd.c
+4
-4
drivers/s390/block/dasd_genhd.c
drivers/s390/block/dasd_genhd.c
+1
-25
No files found.
drivers/s390/block/dasd.c
View file @
0fe11f99
...
...
@@ -2178,10 +2178,10 @@ dasd_release(struct inode *inp, struct file *filp)
struct
block_device_operations
dasd_device_operations
=
{
owner:
THIS_MODULE
,
open:
dasd_open
,
release:
dasd_release
,
ioctl:
dasd_ioctl
,
.
owner
=
THIS_MODULE
,
.
open
=
dasd_open
,
.
release
=
dasd_release
,
.
ioctl
=
dasd_ioctl
,
};
...
...
drivers/s390/block/dasd_genhd.c
View file @
0fe11f99
...
...
@@ -35,26 +35,6 @@ struct major_info {
int
major
;
};
/*
* Returns the queue corresponding to a device behind a kdev.
*/
static
request_queue_t
*
dasd_get_queue
(
kdev_t
kdev
)
{
dasd_devmap_t
*
devmap
;
dasd_device_t
*
device
;
request_queue_t
*
queue
;
devmap
=
dasd_devmap_from_kdev
(
kdev
);
device
=
(
devmap
!=
NULL
)
?
dasd_get_device
(
devmap
)
:
ERR_PTR
(
-
ENODEV
);
if
(
IS_ERR
(
device
))
return
NULL
;
queue
=
device
->
request_queue
;
dasd_put_device
(
devmap
);
return
queue
;
}
/*
* Register major number for the dasd driver. Call with DASD_MAJOR to
* setup the static dasd device major 94 or with 0 to allocated a major
...
...
@@ -93,8 +73,6 @@ dasd_register_major(int major)
mi
->
major
=
new_major
;
/* Setup block device pointers for the new major. */
blk_dev
[
new_major
].
queue
=
dasd_get_queue
;
/* Insert the new major info structure into dasd_major_info list. */
spin_lock
(
&
dasd_major_lock
);
list_add_tail
(
&
mi
->
list
,
&
dasd_major_info
);
...
...
@@ -116,9 +94,6 @@ dasd_unregister_major(struct major_info * mi)
list_del
(
&
mi
->
list
);
spin_unlock
(
&
dasd_major_lock
);
/* Clear block device pointers. */
blk_dev
[
mi
->
major
].
queue
=
NULL
;
rc
=
unregister_blkdev
(
mi
->
major
,
"dasd"
);
if
(
rc
<
0
)
MESSAGE
(
KERN_WARNING
,
...
...
@@ -273,6 +248,7 @@ dasd_setup_partitions(dasd_device_t * device)
{
/* Make the disk known. */
set_capacity
(
device
->
gdp
,
device
->
blocks
<<
device
->
s2b_shift
);
device
->
gdp
->
queue
=
device
->
request_queue
;
add_disk
(
device
->
gdp
);
}
...
...
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