File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,24 @@ int queue_limits_commit_update(struct request_queue *q,
266
266
}
267
267
EXPORT_SYMBOL_GPL (queue_limits_commit_update );
268
268
269
+ /**
270
+ * queue_limits_commit_set - apply queue limits to queue
271
+ * @q: queue to update
272
+ * @lim: limits to apply
273
+ *
274
+ * Apply the limits in @lim that were freshly initialized to @q.
275
+ * To update existing limits use queue_limits_start_update() and
276
+ * queue_limits_commit_update() instead.
277
+ *
278
+ * Returns 0 if successful, else a negative error code.
279
+ */
280
+ int queue_limits_set (struct request_queue * q , struct queue_limits * lim )
281
+ {
282
+ mutex_lock (& q -> limits_lock );
283
+ return queue_limits_commit_update (q , lim );
284
+ }
285
+ EXPORT_SYMBOL_GPL (queue_limits_set );
286
+
269
287
/**
270
288
* blk_queue_bounce_limit - set bounce buffer limit for queue
271
289
* @q: the request queue for the device
Original file line number Diff line number Diff line change @@ -889,6 +889,7 @@ queue_limits_start_update(struct request_queue *q)
889
889
}
890
890
int queue_limits_commit_update (struct request_queue * q ,
891
891
struct queue_limits * lim );
892
+ int queue_limits_set (struct request_queue * q , struct queue_limits * lim );
892
893
893
894
/*
894
895
* Access functions for manipulating queue properties
You can’t perform that action at this time.
0 commit comments