Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155278
b: refs/heads/master
c: bc47df0
h: refs/heads/master
v: v3
  • Loading branch information
Boaz Harrosh committed Jun 24, 2009
1 parent 835dbc5 commit d41a13f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2a13877c5ef3207a2a5c56250742e60808677f90
refs/heads/master: bc47df0fa705887242c26c7b040e7cf0170ab1f1
7 changes: 7 additions & 0 deletions trunk/drivers/block/osdblk.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
#include <scsi/osd_initiator.h>
#include <scsi/osd_attributes.h>
#include <scsi/osd_sec.h>
#include <scsi/scsi_device.h>

#define DRV_NAME "osdblk"
#define PFX DRV_NAME ": "
Expand Down Expand Up @@ -437,6 +438,12 @@ static int osdblk_init_disk(struct osdblk_device *osdev)
return rc;
}

/* Set our limits to the lower device limits, because osdblk cannot
* sleep when allocating a lower-request and therefore cannot be
* bouncing.
*/
blk_queue_stack_limits(q, osd_request_queue(osdev->osd));

blk_queue_prep_rq(q, blk_queue_start_tag);
blk_queue_ordered(q, QUEUE_ORDERED_DRAIN_FLUSH, osdblk_prepare_flush);

Expand Down

0 comments on commit d41a13f

Please sign in to comment.