Skip to contentSkip to conversation

block: fix userspace documentation reference for del_gendisk()

PATCH In review Luis Chamberlain 2 participants 2 messages Apr 26, 2021 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 block: fix userspace documentation reference for del_gendisk()

Commit b5bd357cf8b ("block: add docs for gendisk / request_queue refcount helpers") has a typo where it references drivers for del_gendisk() when we instead meant userspace, as the reference is to the userspace experience. This fixes this.

---
 block/genhd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
block/genhd.c +2 -2
index 39ca97b0edc6..e077adfcd1a2 100644
@@ -594,8 +594,8 @@ EXPORT_SYMBOL(device_add_disk_no_queue_reg);
  * with put_disk(), which should be called after del_gendisk(), if
  * __device_add_disk() was used.
  *
- * Drivers exist which depend on the release of the gendisk to be synchronous,
- * it should not be deferred.
+ * Userspace software may depend on the release of the gendisk to be
+ * synchronous, it should not be deferred.
  *
  * Context: can sleep
  */
Signature · 1 line
2.29.2
Reviewed-by on v2 1/1
#1 lore raw
Quoted 4 lines · Luis Chamberlain

Commit b5bd357cf8b ("block: add docs for gendisk / request_queue refcount helpers") has a typo where it references drivers for del_gendisk() when we instead meant userspace, as the reference is to the userspace experience. This fixes this.

Thanks!